0
What is the result of this code? nums = list(range(5)) print(nums[4])
Any help? I tried to add the up but it didn't work and there is only space for one number By the way it'sin Pithon 3.0
2 Answers
0
if you want to add them up use sum():
print(sum(range(5)))
0
What is the result of this code? nums = list(range(5)) print(nums[4])