SLSkillLoop
Python practice

Python Output Practice

Train yourself to read Python code and predict what it prints. These short output questions help beginners build confidence before moving into longer coding tasks.

Example practice questions

Try these samples, then continue into the Python Practice Labfor guided browser-based practice.

1

What does print(2 + 3 * 4) output?

Answer: 14

2

What does print('py' + 'thon') output?

Answer: python

3

What does print(len(['a', 'b', 'c'])) output?

Answer: 3

4

What does print(10 // 3) output?

Answer: 3

5

What does print(bool('False')) output?

Answer: True

6

What does print([1, 2, 3][1]) output?

Answer: 2

7

What does print('hello'.upper()) output?

Answer: HELLO