Copyright © tutorialspoint.com

# Python List insert() Method

## Description:

This method inserts object obj into list at offset index.

## Syntax:

    list.insert(index, obj)

## Parameters:

Here is the detail of parameters:

- index: Index where the object obj need to be inserted.

- obj: Object to be inserted into the given list

## Return Value:

It returns none but it inserts the given element at the given index.

## Example:

    #!/usr/bin/python

    aList = [123, 'xyz', 'zara', 'abc'];

    print "Final List : ", aList.insert( 3, 2009);

This will produce following result:

    Final List : [123, 'xyz', 'zara', 2009, 'abc']

Copyright © tutorialspoint.com