0
0
Pythonprogramming~10 mins

First Python Program (Hello World) - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to print the greeting message.

Python
print([1])
Drag options to blanks, or click blank then click option'
A"Hello World"
BHello World
Cprint("Hello World")
D'Hello'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting the quotes around the text.
Writing the text without quotes causing an error.
2fill in blank
medium

Complete the code to print the message exactly as shown.

Python
print([1])
Drag options to blanks, or click blank then click option'
A'hello world'
B"Hello World"
C'Hello world'
D"hello World"
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong capitalization.
Using single quotes with wrong case.
3fill in blank
hard

Fix the error in the code to print the message.

Python
print([1])
Drag options to blanks, or click blank then click option'
AHello World
B'Hello World
Cprint("Hello World")
D"Hello World"
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving out quotes around the text.
Using mismatched or incomplete quotes.
4fill in blank
hard

Fill 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'
A"Hello World"
B'Hello World'
C"Hello World!"
D'Hello World!'
Attempts:
3 left
💡 Hint
Common Mistakes
Adding extra punctuation in one print statement.
Forgetting quotes in one of the print statements.
5fill in blank
hard

Fill 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'
A"Hello"
B"World"
C"!"
D'Hello World'
Attempts:
3 left
💡 Hint
Common Mistakes
Printing the whole message in one print statement.
Forgetting quotes around any part.