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
Answer and explanation
Concise answer
8
Why this is correct
For this positive value, converting 8.9 to an integer truncates the fractional part, leaving 8.
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.
