+ 16
The first question in the quiz is not a clear example !¡
3 Réponses
+ 18
I think the example could have been explained in more detail. I understand how it worked, but the question is not exactly in line with the lesson.
+ 6
What do you want to say @Vucko. I didn't get it. Can you explain it.
+ 4
this makes perfect sense...
nums = [1,2,3,4,5]
nums[3] = nums[1] -> sets the index 3 in nums to the value of index 1 so it changes the number 4 as that is the index 3 in nums to 2 as that is index 1
(if you didnt know indexing starts from 0 so in the case of nums, index 0 is 1, index 1 is 2, index 2 is 3 and so on)
print(nums[3]) just prints the value of index 3 in nums which you just set to 2 in the previous part