Basics · Lesson 24 of 76
Comments
A comment is a note for humans that Python ignores. Start it with #. Use comments to explain why something is done, not to repeat what the code obviously says.
Python
Good comments save your future self (and your teammates) time. But don't over-do it — clear names often remove the need for a comment at all.
Your turn: add a comment above the print explaining what it shows.
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →