Computer Science
Consider the loop given below :
for i in range(10, 5, -3) :
print(i)
How many times will this loop run?
- 3
- 2
- 1
- Infinite
Related Questions
Function range(10, 5, 2) will yield an iterable sequence like
Consider the loop given below :
for i in range(-5) : print(i)How many times will this loop run?
Consider the loop given below :
for i in range(3) : passWhat will be the final value of i after this loop ?
Consider the loop given below :
for i in range(7, 4, -2) : breakWhat will be the final value of i after this loop ?