Bridge Academy.
← BACK TO MATERIALS
WEEK 34 · JULY 9, 2026

Lists · Part 2

sorted, .sort, .reverse, .remove, .pop, .index, .count; sorted vs sort gotcha.

Lesson 08 · Lists · Part 2 — Level I · Guide

July 9, 2026 · Bridge Academy Python Program

Learning goals

- Use sorted() to get a new sorted list and .sort() to sort in place. - Reverse a list in place with .reverse(). - Remove items by value (.remove()) or by index (.pop()). - Find positions with .index() and count occurrences with .count(). - Avoid the classic bug: x = lst.sort() returns None. - Sort descending with sorted(lst, reverse=True).

This lesson covers PCEP-30-02 objective 3.1.

Preview truncated — download the notebook to see the full lesson.