Python Modulo Operator
Multiple Choice Easy
Question
What does `17 % 5` evaluate to?
Hint
% returns the remainder after division.
Explanation
% returns the remainder. 17 divided by 5 is 3 with a remainder of 2 (5 × 3 = 15, 17 − 15 = 2). So 17 % 5 = 2.
Related Resources
Related Lessons
- Python Variables
Arithmetic operators.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.