Python: What does this print?

Beginner Python
Created by Best · 12.04.2026 at 16:05 UTC

Practice reading code and predicting output. Run the code in your head or on paper.

University approvals: 0
Tasks
Question 1

What is printed?

x = [1, 2, 3]
print(len(x))
Question 2

What is printed?

print(2 ** 3)
Question 3

What is the value of r after this runs?

a = 10
b = 3
r = a % b
Card Info
  • Topic: Python
  • Difficulty: Beginner
  • Completed: 0 users
Creator
Best
Best
BestBuddy