Getting a syntax error Python - what's the most common mistake beginners make? or Why does this keep

20 Replies, 2218 Views

Ugh, I feel you! Syntax error Python is the bane of my existence.

Try this:
1. Look at the line *before* where Python says the error is. Sometimes the actual mistake is there.
2. Copy-paste your code into a diff checker to spot weird invisible chars.

And yeah, tabs vs spaces is a silent killer. 😭

Messages In This Thread



Users browsing this thread: 1 Guest(s)