Exam-style question
Try this first
In Python 3, what is the result of 17 % 5?.
- A.2
- B.3
- C.5
- D.12
Answer and explanation
Concise answer
5
Why this is correct
The % operator gives the remainder from integer division. Five goes into 17 three times, with a remainder of 2.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
