def update_playlist(id, name, db):
    db.execute(
        "UPDATE playlist SET name='{name}' WHERE id={id};".format(name=name, id=id))
def update_playlist(id, name, db):
    db.execute("UPDATE playlist SET name=%s WHERE id=%s;", (name, id,))
    db.execute(

        "UPDATE playlist SET name='{name}' WHERE id={id};".format(name=name, id=id))

    db.execute("UPDATE playlist SET name=%s WHERE id=%s;", (name, id,))

'{name}'
{id}
.format
=name
=id
%s
%s
, 
,