Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to print the greeting message.
Python
print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting the quotes around the text.
Writing the text without quotes causing an error.
✗ Incorrect
To print text in Python, you must put the text inside quotes inside the print() function.
2fill in blank
mediumComplete the code to print the message exactly as shown.
Python
print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong capitalization.
Using single quotes with wrong case.
✗ Incorrect
The message must match exactly with capital letters and spacing, so use "Hello World".
3fill in blank
hardFix the error in the code to print the message.
Python
print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving out quotes around the text.
Using mismatched or incomplete quotes.
✗ Incorrect
The text must be inside matching quotes to be a string. Option D fixes the error.
4fill in blank
hardFill both blanks to create a program that prints 'Hello World' twice.
Python
print([1]) print([2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding extra punctuation in one print statement.
Forgetting quotes in one of the print statements.
✗ Incorrect
Both print statements must print the exact message 'Hello World' with quotes.
5fill in blank
hardFill all three blanks to print 'Hello', 'World', and '!' each on a new line.
Python
print([1]) print([2]) print([3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Printing the whole message in one print statement.
Forgetting quotes around any part.
✗ Incorrect
Each print statement prints one part of the message with quotes.