I learned Python today, but I just started a problem, I didn't have a problem, but I will display "SyntaxError: Invalid Syntax every time."
"SyntaxError: invalid syntax" means syntax errors; the query solves this problem, so summarizes a solution to this problem:
Because Python2 and Python3 are not compatible, some code that can run on Python2 is not necessarily running on Python3; you can try to replace the version;
Remember to check if your path is correct;
:after if , elif , else , for , while , class ,def statements;
"SyntaxError: Invalid Syntax" may appear when installing a third-party module, then you need to check if you are installed under the CMD window, at the same time, find the PIP The installation inside the catalog;