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

22 Replies, 2005 Views

Classic! The colon is non-negotiable in Python.

Corrected code:
```python
if x == 5:
print("Hello")
```

If you’re new to Python, I’d suggest playing around with [Codecademy’s Python course](https://www.codecademy.com/). They drill this stuff into you so you don’t miss it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)