← SC in Schools Python

The Code for Schools Editor

The symbol used in the editor to write comments, telling Python to ignore the rest of the line.

Understanding The Code for Schools Editor in SC in Schools Python

What it does: Lines starting with # are documentation notes that are skipped during runtime. The print() function sends textual data directly to the editor's console output window. The # symbol creates comments in Python, telling the editor to ignore the rest of that line. Python scripts execute sequentially from top to bottom without needing an explicit main wrapper block. Python is case-sensitive; using capitalized versions like Print() or SAY() will trigger errors. Any loose plain text without quotes or a comment symbol is treated as code and causes a syntax error. The hash symbol defines a comment, and say() executes normally on the next line.

Common mistakes: Line 0 is incorrect because Python files do not use an editor_run block or curly braces to execute code; you just write the commands directly. Line 1 is incorrect because the say() function requires parentheses around its text argument to execute correctly in the editor.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 64–73) and word search (Modules 64–73).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which symbol is used in the Code for Schools Editor to write comments that Python will ignore?
#//
Matches
// Fix the layout here
↓
Invalid comment style because Python uses # instead of double forward slashes.
Applying
Meanings
Term
#
Meaning
The symbol used in the editor to write comments, telling Python to ignore the rest of the line.
Practice
say("Hello Editor!")
Testing
Gaps
Note
Check Answer
Spots
1editor_run {
2 say("Hello")

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Armadillo' badge — Shield Bearer, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which symbol is used in the Code for Schools Editor to write comments that Python will ignore?
A. # ✓
B. //
The # symbol creates comments in Python, telling the editor to ignore the rest of that line.
2. True or False: The editor requires a special 'main' block to execute your simple Python script.
A. False ✓
B. True
Python scripts execute sequentially from top to bottom without needing an explicit main wrapper block.
3. Does Python ignore lines in the editor that start with a hash symbol (#)?
A. Yes, completely ✓
B. No, it still checks them for errors
Comments starting with # are entirely ignored during the execution of your code.
4. Are Python commands like print() and say() case-sensitive inside the editor workspace?
A. No, PRINT() works the same
B. Yes, case matters ✓
Python is case-sensitive; using capitalized versions like Print() or SAY() will trigger errors.
5. Can you place a comment on the exact same line as a code command, after the command is written?
A. No, comments must be on their own line
B. Yes, after the code ✓
An inline comment can be placed after a command, and Python will ignore everything from the # symbol to the end of that line.

Match the Pairs

# This is a note say("Hello") → A Python comment followed by a custom function call that executes in the editor.
print("Output") # Inline comment → Executes a print command and uses an inline comment explaining it on the same line.
A completely ignored comment line used for document notes inside the workspace. → # Documenting the editor process
A standard text output instruction to display a message in the console area. → print("Editor Console")
// Fix the layout here → Invalid comment style because Python uses # instead of double forward slashes.
say("Missing parenthesis" → Invalid syntax because the function call is missing its closing parenthesis character.

Key Term

#
The symbol used in the editor to write comments, telling Python to ignore the rest of the line.

Fill in the Blanks

1. # Note say("Hello")
Hint: Type the comment symbol used in the editor
2. say("Editor check")
Hint: Type the custom function name to speak text
3. # First line say("Second line")
Hint: Type the function name on the second line
4. # Workspace print("Visible Output")
Hint: Type the built-in function name to display text
5. print("Python Editor") # End
Hint: Type the comment symbol before the final note

Spot the Error

Question 1
A editor_run {
B say("Hello")
C }
Line A — Line 0 is incorrect because Python files do not use an editor_run block or curly braces to execute code; you just write the commands directly.
Question 2
A # This is a comment
B say "No parentheses needed"
C # End of script
Line B — Line 1 is incorrect because the say() function requires parentheses around its text argument to execute correctly in the editor.
Question 3
A say("Line one")
B say("Line two")
C comment: Check the workspace
Line C — Line 2 is incorrect because comments in the Python editor must start with the # symbol, not the word comment:.
Question 4
A print("Starting...")
B # Running editor test
C say("Done")
D say(Goodbye)
Line D — Line 3 is incorrect because text strings passed to functions in the editor must be wrapped in quotes like "Goodbye".
Question 5
A // This is a note for the code
B print("Welcome to Cloodit")
C # Let's begin
Line A — Line 0 is incorrect because Python uses # for comments; // is used in languages like JavaScript.

Student with a class code? Join your class →