what is going on here why does it print the last element?
10/22/2016 1:32:20 PM
Indexes start at 0, so list is the 5th element of the list, which is 5, and list[list] is list, ie the 6th element of the list, 6.
got it thank you
wait so the first list of the list[list] simply indexes one farther? so is it a complicated way of writing list or does the nested list go first pulls the number from the list for the in nested list?
list[list] is only list here because the 5th element of this particular array is 5.
because the last element of the list matches list
explain me briefly
Both statements are true but why it gives only first answer
Learn Playing. Play Learning
Send us a message