<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sqldelete(table, where):
 ('delete from t where id=%s', [5]) """

    validate_name(table)
    (whereclause, wherevalues) = sqlwhere(where)
    sql = "delete from {}".format(table)
    if whereclause:
        sql += " where " + whereclause
    return (sql, wherevalues)