What is the output of print(10 ** 100 < float('inf')) in Python?
print(10 ** 100
Correct answer
C. True
6 views
C. True
6 views
Any finite number is smaller than infinity.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is C? Ask here and get an explanation.