how to insert any value in list like in between the value like append option because append at the end
1 Like
Hiii @shamsfaishal,
you can insert any element at any index by using insert method of list. It will add an element at the index value you have provided. for e.g.
number = [2,4,5,6,7]
number.insert(2,8)
2 Likes