0

Question on the exrrcise.

Help for a beginner.

21st Aug 2019, 7:11 PM
McArty
McArty - avatar
2 Antworten
+ 3
No, you forgot index 0, so index 4 is actually number 4 and not 3
21st Aug 2019, 7:20 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Why is the correct answer 4 in the following example? nums = list(range(5)) print(nums[4]) nums equal [0,1,2,3,4] right? The value with index [4] will be equal 3. If that isn't an error, then what am I doing wrong?
21st Aug 2019, 7:16 PM
McArty
McArty - avatar