+ 10

Why does the code block if I enter number greater than 3 or less than -4 in line 9?

https://code.sololearn.com/c9i8gl1xt5n5/?ref=app

18th Mar 2018, 10:16 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
3 ответов
+ 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
18th Mar 2018, 10:59 PM
John Wells
John Wells - avatar
+ 2
thats how list manipulation work. Those are the maximum selectable / index values
18th Mar 2018, 10:30 PM
Markus Kaleton
Markus Kaleton - avatar