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

22 Replies, 2027 Views

Haha, welcome to Python! That colon is *mandatory*.

Here’s the corrected version:
```python
if x == 5:
print("Hello")
```

If you’re using Atom or Sublime, install a linter plugin—it’ll save you from syntax error python nightmares.

Messages In This Thread



Users browsing this thread: 1 Guest(s)