Syntax errors = code grammar mistakes. Python’s usually good at pointing to the line, but sometimes it’s *next* to the actual error.
For example:
```python
print("hello" # missing closing )
```
The error might highlight `print`, but the issue is the parenthesis.
Pro tip: Always check the line *before* the error too.
For example:
```python
print("hello" # missing closing )
```
The error might highlight `print`, but the issue is the parenthesis.
Pro tip: Always check the line *before* the error too.
