Computer Science
Consider the loop given below :
for i in range(3) :
pass
What will be the final value of i after this loop ?
- 0
- 1
- 2
- 3
Python Control Flow
32 Likes
Answer
2
Answered By
5 Likes
Related Questions
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(10, 5, -3) : print(i)How many times will this loop run?
Consider the loop given below :
for i in range(7, 4, -2) : breakWhat will be the final value of i after this loop ?
In for a in __________ : , the blank can be filled with