Skip to content

Glossary: Python Basics

insert, remove, pop

Also written: .insert(), .remove(), .pop()

List methods that change the list itself. `insert(i, x)` adds at a position, `remove(x)` deletes the first matching value, and `pop()` removes the last item and gives it back.

Where the book teaches it

Related terms

append