Getting a syntax error in Python—what am I missing? or Why am I seeing a syntax error in Python when

22 Replies, 2040 Views

Oh wow, thanks everyone! I can’t believe I missed the colon—facepalm moment for sure.

I tried PyCharm like someone suggested, and it’s already catching these syntax error python things before I even run the code. Lifesaver!

Quick follow-up: Does anyone know why Python *requires* the colon? Like, what’s the logic behind it? Just curious!

Messages In This Thread



Users browsing this thread: 1 Guest(s)