Grades 9–10
What Will It Print?
Predict the output. Get 6 of 8 right to earn the badge.
Question 1 of 8 · Score 0
What prints?
x = 7 print(x // 2)
What this game teaches
- Tracing code line by line
- Strings, lists, dictionaries and slicing
- Integer division, f-strings and loops
Play together
- Trace the code on paper, writing each variable’s value.
- Explain your answer before revealing it.
Want more? This game comes from Coding Pathway (Python): Python Levels 1–2
See the program From Python foundations to applied programming with files, data, APIs and automation.