Which method is used to insert an item at a specified index in a list?

  • add()
  • append()
  • extend()
  • insert()
The insert() method is used to insert an item at a specified index in a list. It takes two arguments: the index where the item should be inserted and the item itself.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *