Python reference

Python list methods

Add, remove, sort and search the items of a list: append, extend, pop, sort and more.

A list is an ordered collection you can change. List methods add items (append, extend, insert), take them out (remove, pop, clear), find them (index, count) and reorder them (sort, reverse). Most of them change the list in place and return None, which is the most common beginner surprise.

Most used

All 11 list methods

Spotted a mistake on this page? Tell us