Exam-style question
Try this first
In Python 3, what is the result of 17 % 5?.
- A.2
- B.3
- C.5
- D.12
Model answer
What a good answer should say
- 2
Explanation
Why this works
The % operator gives the remainder from integer division. Five goes into 17 three times, with a remainder of 2.
Common mistake
No common mistake is linked to this question yet.
