With templates:
mysql.execute(t"DELETE FROM table WHERE id={id} AND param1={param1}")
Without templates: mysql.execute("DELETE FROM table WHERE id=%s AND param1=%s", [id, param1])
So one less argument to pass if we use templates.But yeah it does seem a bit confusing, and maybe kinda not pythonic? Not sure.