We know that the value of the variable is updated by the for loop itself right.
But on executing the following two pieces of codes :
1.for i in range(len(string)):
2.for i in range(len(string)):
I got the same output. How is this possible?
Shouldn’t the first output be : 0 2 4… and second output be 0 1 2 …