Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right 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. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
# — The symbol used in the editor to write comments, telling Python to ignore the rest of the line.# Note
say("Hello")say("Editor check")# First line
say("Second line")# Workspace
print("Visible Output")print("Python Editor")
# End