BugHunt

Python list exercises

Lists look simple until a loop runs one step too far or two variables turn out to be the same list. These exercises are short functions that work with lists, each with one real bug and tests that prove your fix.

They cover what trips beginners most: indexes and slices, methods that change the list and return None, and copies that are not copies.

See the 19 exercisesOr follow the 30-day path

The lists bugs you will meet

The exercises

Errors you might be searching for

More Python practice by topic

Questions

Do I need to know loops first?

Basic for loops help. If you are newer than that, start with the easy ones at the top: several need no loop at all.

Is there a certificate?

Yes, free. Fixing 25 easy Python bugs while signed in earns Python Debugging · Level 1, and the 30-day Python path has its own certificate.