LESSON 15

Python Review Challenge

Learning objective: Combine Python fundamentals into one small program.

Understand

This challenge checks your Python foundations.

You now know variables, types, conditions, loops, functions, lists, dictionaries, files, errors, and classes. This review asks you to combine several of them in one useful program.

Analogy: This is the rehearsal where all your Python skills perform together.

See It in Action

A small program often combines input, logic, and a loop:

names = ["Sam", "Ada"]
for n in names:
    print(f"Hello, {n}!")
How it works: A list plus a loop plus an f-string greets each person — several fundamentals working together.

Try It Yourself

  1. Build a program that uses a list and a loop.
  2. Add a function and a condition.
  3. Handle at least one possible error.

Quick Quiz

What best shows solid Python fundamentals?

Challenge

Write a program that uses a list, a loop, a function, and error handling together.

Success condition: Your program runs correctly and combines at least four concepts.