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 | |
|---|---|---|
| 1syntax error | A# SyntaxError on line 3 # Check line 3 for a typo | |
| 2print("Hello, world!) | BSyntax error — the closing quote is missing from the string | |
| 3Debugging means finding and fixing the error in your code | C# Find the bug # Fix it # Click Run to test | |
| 4The error message shows the line number where Python got confused | DSyntax error — string must be wrapped in quote marks | |
| 5print(Hello, world!) | EWrong — Python stops immediately and shows an error message | |
| 6# Python keeps running after a syntax error | FAn error caused by a typo, missing quote, or wrong bracket that stops Python running |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
syntax error — An error that occurs when Python cannot understand your code due to a typo, missing quote, or wrong bracket; Python stops and shows a message with the line number# A syntax error means Python cannot runprint("Hello, world") # no syntax error# Fix the bug then click Run again# Read the error to find the line numberprint("Hello) # missing quote