CodeCubGet the app
📦

Lists, Dicts & Data

Collections that hold your data · 11 lessons

The workhorses of Python: lists, slicing and negative indexes, dictionaries, tuples and sets, sorting, membership tests and nested data.

Practice this track with instant, on-device checks in CodeCub.

Get the app

Lessons in this track

  1. 1Lists
  2. 2Negative indexes
  3. 3Slicing
  4. 4append & pop
  5. 5The in operator
  6. 6Sorting
  7. 7Dictionaries
  8. 8dict.get & keys
  9. 9Tuples
  10. 10Sets
  11. 11Nested data

How you'll be checked

Each lesson pairs a short explanation with 2–3 exercises, graded deterministically on your device:

🔮 Predict the output

Read a snippet and say exactly what it prints — the fastest way to build a mental model of how Python runs.

✏️ Fill the blank

Complete the missing token so the code does what the prompt asks. No syntax hand-holding.

🔢 Order the lines

Drag shuffled lines back into the sequence that produces the right result.

✅ Pick the answer

Choose the correct statement about behaviour, output or a concept.

← Previous track

🔀 Control Flow & Loops

Next track →

🧩 Functions

Learn Python — free app

Learn Python that sticks

54 tiny lessons with CodeCub

Get the app