Computer Science
Consider the loop given below :
for i in range(-5) :
print(i)
How many times will this loop run?
- 5
- 0
- infinite
- Error
Python Control Flow
25 Likes
Answer
0
Answered By
4 Likes
Related Questions
Function range(10, 5, -2) will yield an iterable sequence like
Function range(10, 5, 2) will yield an iterable sequence like
Consider the loop given below :
for i in range(10, 5, -3) : print(i)
How many times will this loop run?
Consider the loop given below :
for i in range(3) : pass
What will be the final value of i after this loop ?