0
python lists confusion
nums = [5, 4, 3, 2, 1] print(nums[1]) the result is 4 , why? can anyone explain?
2 Answers
0
Oh i figured it out,because in order to get 5 you must print [0] to get the first number
- 1
array list tuple
postion always stars with 0
ends with (total length-1)