Inserting and deleting in a list

a = [1, 2, 3], a.insert(0, 9) → [9, 1, 2, 3]

You can also choose a level by clicking a star.

About the course

Description
The insert, remove and pop (with an index) methods and the del statement change the list in place
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
a = [1, 2, 3], a.insert(0, 9) → [9, 1, 2, 3]
Author
Jiří Preisler
Version
1.0