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 ?
1 ответ
0
thanks for your answer