Problem scenario
You do not know why you are getting the error. The line has an “l” (a lowercase “L”) or a numeral one (“1”) in it.
You may have identified that the line of code is different in one file from another. You cannot tell what is different about your code or why you are getting this error. What should you do?
Solution
Enter vi or open Notepad++ to view the code.
…
Continue reading “How Do You Troubleshoot a “SyntaxError: invalid syntax” Error in Python?”