Python Fundamentals / Getting started
Lesson 4 of 38
Comments
Lines starting with # are comments. Python ignores them; they're notes for humans explaining why the code does what it does.
Key points
- Start a comment with #
- Explain why, not what
- Use them to switch lines off while testing
# This line is ignored
print("This one runs")Quiz · +10 XP
Which symbol starts a comment in Python?
Log in to save progress and earn XP.