Vidyalelo
Python · Q25

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 25

Q25

What is the result of int(3.999) ?

A.
3
Answer
B.
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.