निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
from math import *
floor(3.7)
A)
B)
C)
D)
Explanation:
The floor()
function in Python returns the largest integer less than or equal to the given number.
In this case, floor(3.7)
will return 3
because 3 is the greatest integer less than or equal to 3.7.
Answer: (A) 3