Examveda

What will be the output of the following Python code?
for i in range(int(float('inf'))):
    print (i)

A. 0.0 0.1 0.2 0.3 ...

B. 0 1 2 3 ...

C. 0.0 1.0 2.0 3.0 ...

D. none of the mentioned

Answer: Option D


Join The Discussion

Related Questions on Conditional Formatting (While and For Loops)