Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 6)
6.
Which of the following methods is used to insert an element at a specific index in a list?
add(index, element)
insert(index, element)
append(index, element)
push(index, element)
Answer: Option
Explanation:
The insert(index, element) method is used to insert an element at a specific index in a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.