0

What is the first element's index is lists and arrays in python?

12th Nov 2017, 10:50 AM
Amin BEHNAMI FARD
Amin BEHNAMI FARD - avatar
2 Answers
+ 11
0 and it's the same for other languages.
12th Nov 2017, 12:42 PM
qwerty
qwerty - avatar
+ 3
in python the element lists start at 0, thus 1 = the second element and so on
12th Nov 2017, 11:00 AM
jamiedl2003
jamiedl2003 - avatar