The Code for Schools Editor

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

The Code for Schools Editor

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which symbol is used in the Code for Schools Editor to write comments that Python will ignore?
A #
B //
2. True or False: The editor requires a special 'main' block to execute your simple Python script.
A False
B True
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
4. Are Python commands like print() and say() case-sensitive inside the editor workspace?
A No, PRINT() works the same
B Yes, case matters
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

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

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

Definitions

#

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
_ Note say("Hello")
2.
___("Editor check")
3.
# First line ___("Second line")
4.
# Workspace _____("Visible Output")
5.
print("Python Editor") _ End

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A editor_run {
B say("Hello")
C }
Question 2
A # This is a comment
B say "No parentheses needed"
C # End of script
Question 3
A say("Line one")
B say("Line two")
C comment: Check the workspace
Question 4
A print("Starting...")
B # Running editor test
C say("Done")
D say(Goodbye)
Question 5
A // This is a note for the code
B print("Welcome to Cloodit")
C # Let's begin

Answer Key

The Code for Schools Editor
Section A: Quick Questions
Q1
A — #
Q2
A — False
Q3
A — Yes, completely
Q4
B — Yes, case matters
Q5
B — Yes, after the code
Section B: Match the Pairs
Q1
# This is a note say("Hello") → A Python comment followed by a custom function call that executes in the editor.
Q2
print("Output") # Inline comment → Executes a print command and uses an inline comment explaining it on the same line.
Q3
A completely ignored comment line used for document notes inside the workspace. → # Documenting the editor process
Q4
A standard text output instruction to display a message in the console area. → print("Editor Console")
Q5
// Fix the layout here → Invalid comment style because Python uses # instead of double forward slashes.
Q6
say("Missing parenthesis" → Invalid syntax because the function call is missing its closing parenthesis character.
Section C: Definitions
Q1
# — The symbol used in the editor to write comments, telling Python to ignore the rest of the line.
Section D: Fill in the Blanks
Q1
# Note say("Hello")
Q2
say("Editor check")
Q3
# First line say("Second line")
Q4
# Workspace print("Visible Output")
Q5
print("Python Editor") # End
Section E: Spot the Error
Q1
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.
Q2
B — Line 1 is incorrect because the say() function requires parentheses around its text argument to execute correctly in the editor.
Q3
C — Line 2 is incorrect because comments in the Python editor must start with the # symbol, not the word comment:.
Q4
D — Line 3 is incorrect because text strings passed to functions in the editor must be wrapped in quotes like "Goodbye".
Q5
A — Line 0 is incorrect because Python uses # for comments; // is used in languages like JavaScript.