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 | |
|---|---|---|
| 1print("Hello!") | APython has no direct match for say for 2 seconds. Adding 2 inside print() does not make a timer, it just prints an extra 2. It should be print("Hello!"). | |
| 2print("Go team!") | Bprint("Good luck!") | |
| 3In Python, the text you want to show must be wrapped in quotes inside print() | CThe Python version of the Scratch block say Hello!. It shows the text on screen. | |
| 4Scratch say Good luck! becomes this Python line | DThe Python version of the Scratch block say Go team! | |
| 5print(Hello!) | EThe text has no quotes around it. Python thinks Hello is a name, not text, so the line gives an error. It should be print("Hello!"). | |
| 6print("Hello!", 2) | Fprint("Hi there") |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
print("Hello!") — Python version of the Scratch say block. It shows the text inside the quotes on screen, so say Hello! becomes print("Hello!"). Python has no direct match for say for 2 seconds.print("Hello!")print("Welcome to my game!")# Scratch say block = Python print
print("Hello!")message = "Hi there!"
print(message)print("Hi, I am a robot!")
print("Nice to meet you!")