1.

What is returned by math.isfinite(float(‘inf’))?(a) True(b) False(c) None(d) errorI got this question during an online interview.My question is based upon Math topic in section Mapping Functions and Modules of Python

Answer»

The CORRECT ANSWER is (b) False

Easy explanation - FLOAT(‘INF’) is not a finite number.



Discussion

No Comment Found

Related InterviewSolutions