Exam-style question
Try this first
In Python 3, what is the result of int(8.9)?.
- A.8
- B.8.9
- C.9
- D.89
Model answer
What a good answer should say
- 8
Explanation
Why this works
For this positive value, converting 8.9 to an integer truncates the fractional part, leaving 8.
Common mistake
No common mistake is linked to this question yet.
