+ 10
Why does the code block if I enter number greater than 3 or less than -4 in line 9?
3 Réponses
+ 7
Each position in the list has two indexes to access it as shown below:
[0, 1, 2, 3] #List contents
0 1 2 3 #Positive indexes
-4 -3 -2-1 #Negative indexes
+ 2
thats how list manipulation work. Those are the maximum selectable / index values