Vidyalelo
Python · Q49

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 49

Q49

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board