निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
from math import *
ceil(3.4)
A)
B)
C)
D)
Explanation:
The correct answer is:
(A) 4
Explanation:
- The
ceil()
function from themath
module returns the smallest integer greater than or equal to the given number. - For
ceil(3.4)
, the smallest integer greater than or equal to3.4
is4
.
So, the output of the code ceil(3.4)
is 4.
Output:
(A) 4