Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Loop with float number

for i in range(2.0):
print(i)
In VScode the result is TypeError , but there in test true answer is 2 . Is there any mistake in test ?
by

2 Answers

iamabhishek
Please share in which test you found this?
springBootGuru
Python Online Practice Test - 4

Login / Signup to Answer the Question.