1.

What is the value returned by math.floor(3.4)?(a) 3(b) 4(c) 4.0(d) 3.0This question was posed to me during a job interview.My question is based upon Math in division Mapping Functions and Modules of Python

Answer» RIGHT answer is (a) 3

Best explanation: The FLOOR function returns the biggest NUMBER that is smaller than or equal to the number itself.


Discussion

No Comment Found

Related InterviewSolutions