+ 1
Can someone explain the output of this code?
a=[0,1,2,3] for a[-1] in a: print(a[-1])
2 Answers
+ 1
Thanx for the explanation :)
But i am still having confusion on last iteration
How is a[3]=2
+ 1
Okay....got it
Thanks buddy :)
a=[0,1,2,3] for a[-1] in a: print(a[-1])