error message
Debug the code and report an error after execution is complete
pymysql.err.ProgrammingError: (1064, “You have an error in your SQL syntax

solution

The reason is that there should be a space after insert into
, so the execution will pass.