Vidyalelo
Python · Q10

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 10

Q10

What is the result of int(3.9) ?

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