0
What will be the output?Explain with proper solution...
a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
4 ответов
+ 2
Negative indexes mean you count backwards. In you case index 3 is index -1, since it's the last one.
0
So what is the answer
0
0
1
2
2