Comments
A # character starts a comment that Python ignores when running the code
What it does: # This is a comment is valid Python comment syntax. Comments can go after code on the same line with proper spacing. The # makes the whole line a comment — Python skips it entirely. Everything after # is a comment — only the code before it runs. # input() is commented out — only the second input() actually runs. Python uses # for comments — // is used in JavaScript and other languages. # causes Python to ignore everything from that point to the end of the line. Comments are for programmers reading the code — Python ignores them.
Common mistakes: Wrong comment symbol: // should be #. Missing closing quote.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
# print('Hi')?print('Hello') # greeting# do?# input() vs input()# 'Test'Match the Pairs
Key Term
# This is a commentFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →