← Learn Python

Unit 2 of 3 · Beginner → Intermediate · 63 min total

Data & control flow. The shapes data takes and the loops that walk through them.

Seven lessons that take you from “I can write an if statement” to “I can process a file, deduplicate it, sort it, and pass it to a function with sensible defaults.” Work them in order, then prove it with the Unit 2 quiz.

When you finish the lessons

Test what stuck. 20 questions, 5 minutes.

You’ll get a score and a per-topic breakdown — so if your list operations are sharp but dicts are wobbly, you know exactly which lesson to revisit before moving to Unit 3.

Take the Lists & Loops Quiz →