Python practice: Hello, Python
Chapter 1 · 7 questions · free to solve
Question 1 · easy
What is a program?
Solve it in your browserWhich statement best describes a computer program?
Question 2 · easy
Hello, World!
Solve it in your browserEvery programmer's first program. Print exactly:
Hello, World!Question 3 · easy
Three lines of code
Solve it in your browserPrint these three lines in order:
Welcome to Python Day 1 Let's code!Question 4 · easy
Numbers do not need quotes
Solve it in your browserPrint the number
42followed on the next line by the sum2 + 3(let Python calculate it, don't print the text "5"):Question 5 · easy
Print multiple values
Solve it in your browserPrint
Apples: 5 Oranges: 3using a singleprint()statement with commas between items:Question 6 · easy
Add code comments
Solve it in your browserAdd a comment
# Calculate totalon line 1, then print118.0by calculating100 * 1.18on line 2:Question 7 · easy
Fix syntax error
Solve it in your browserFix the syntax error in this broken code snippet:
print("Q1 Sales Report)
These questions are free.
Make a free account to solve them, with instant checking and an AI tutor for hints.
Start free