+ 5

range

nums=list(range(5)) print(nums[4]) answer should be 3. but sololearn is giving answer 4 as correct. nums=[0,1,2,3,4] nums[4] should be 3

4th Sep 2019, 7:58 AM
Mugdha Gandhi
2 Answers
- 1
Same doubt 🙄🙄
6th May 2020, 7:42 AM
Ooviya Nagarajan
Ooviya Nagarajan - avatar