Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to print two lines of text.
Python
print('Hello') print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around the text.
Using text without quotes causing a NameError.
✗ Incorrect
The print function needs a string argument with quotes to print text. Option C correctly uses quotes.
2fill in blank
mediumComplete the code to print three lines, each with a different word.
Python
print('Line 1') print([1]) print('Line 3')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Missing quotes causing errors.
Using unquoted text which is treated as a variable.
✗ Incorrect
To print text, it must be a string inside quotes. Option A uses single quotes correctly.
3fill in blank
hardFix the error in the code to print two lines correctly.
Python
print('First line') print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving out quotes causing NameError.
Using unquoted text as if it were a string.
✗ Incorrect
The second print needs a string argument with quotes. Option D uses double quotes correctly.
4fill in blank
hardFill both blanks to print three lines with correct strings.
Python
print('Start') print([1]) print([2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using unquoted words causing errors.
Mixing quoted and unquoted text.
✗ Incorrect
Both blanks need strings inside quotes. Options A and C correctly provide quoted strings.
5fill in blank
hardFill all three blanks to print a three-line poem.
Python
print([1]) print([2]) print([3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around text.
Using incorrect poem lines.
✗ Incorrect
All three lines are strings and must be inside quotes. Options A, B, and C form a classic poem.