Brainlag
  1. Python
  2. Core
13/42 lessons

More list tools: split, join and friends

25 min5 exercisesPremium

Python list methods in practice: split text into lists, join them back, index, count, insert, pop, extend, and sorting a copy highest first.

The skill
Turn text into lists and back, and add, find and remove items safely.
You make
A tag tidier, a playlist editor and a fast-pass queue.

Premium lesson

£7.99 a month or £59 a year. Cancel any time.

Builds on 12 Lists hold many things. Free to try: Python Foundations and the playground.

Step 1 of 9
exercise_1.py

You've reached the good stuff.

5 exercises in this lesson, checked as you type. Premium opens every lesson after Foundations, in all four courses.

Python 3.13