Q25
What is the result of int(3.999) ?
A.
3
AnswerB.
4
C.
3.999
D.
4.0
Answer: Option A
Solution
Answer: Option A
Solution:
The int() function converts a floating-point number to an integer by truncating the decimal part.