Sail E0 Webinar
Question
What is the output of the following?for i in range(float('inf')):    print (i)
Options:
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


Error, objects of type float cannot be interpreted as an integer.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers