0

Insert option in List

Actually using append we can add elements in list only at the end and when we use insert method, we can add our elements in any of the position in the list. example is my list=[1,2,3,4] But I tried to add element 8 at index 5 of my list. and when I print( my list[4]), Output is 8.. Can anyone explain why ?

6th Mar 2017, 11:00 AM
Abin Singh R
Abin Singh R - avatar
1 Antwort
0
thanks for your answer
6th Mar 2017, 11:05 AM
Abin Singh R
Abin Singh R - avatar