StudyToCert

All certifications / PCEP / Lessons

PCEP – Certified Entry-Level Python Programmer PCEP-30-02 · Domain 3: Data collections: tuples, dictionaries, lists and strings

List methods and functions: append(), insert(), index(), remove(), sort(), len(), sorted(), del

▶ Watch the overview video

Last reviewed September 30, 2026 · Leer en español

Lists come with methods, which you call with dot notation on the list itself (lst.append(4)), and they also work with general built-in functions such as len() and sorted() and with the del statement. The difference matters on the exam: methods like append() and sort() change the list in place and return None, while functions like sorted() leave the list alone and return something new. Knowing which tool mutates and which returns a value is the key to predicting output.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study PCEP for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the PCEP study plan