22nd Feb 2018, 9:52 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
3 Answers
+ 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.
22nd Feb 2018, 10:09 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
+ 6
What do you want to say @Vucko. I didn't get it. Can you explain it.
22nd Feb 2018, 9:58 PM
Akash Pal
Akash Pal - avatar
+ 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
22nd Feb 2018, 10:41 PM
Obbu
Obbu - avatar