The code won\'t execute because in the loop, statement is a string.
mycursor.execute(statement + str(n)) -- > mycursor.execute(\'statement0\') ---> ERR