निम्नलिखित का आउटपुट क्या होगा पायथन कोड?
What will be the output of the following Python code ?
from math import *
floor(11.7) A
12
B
11
C
11.0
D
None of these
Explanation
Let's break down the code:
from math import *
floor(11.7)
- The
floor()function returns the largest integer less than or equal to the given number. - For
11.7, the largest integer less than or equal to it is11.
So, the output will be 11.
Answer: (B) 11.
Correct Answer: B) 11