Brainlag
  1. Python
  2. Core
16/42 lessons

Checkpoint: lists and functions

Checkpoint30 min4 problemsPremium

Four problems on your own: write functions that take lists, use defaults and hand back answers, then find a function that damages its input.

The skill
Write functions on your own that take lists, use defaults and leave their inputs alone.
You make
A word scorer, a bill splitter and a leaderboard that does not damage its input.

Premium lesson

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

Builds on 15 Parameters, defaults and scope. Free to try: Python Foundations and the playground.

Step 1 of 5
exercise_1.py

You've reached the good stuff.

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

Python 3.13