2026-spring python-basics/lessons/03-making-decisions-with-if

README.md

Lesson 3: Making decisions with if

Making decisions with if comes up in almost every real Python project. We start with the why, then write code together.

Full lesson: https://glibcode.net/courses/python-basics/lessons/3

Files

  • grade.py: if, elif and else on a test score

Tip: help(len) in the interpreter shows the documentation of any function.

Run it

python3 grade.py

Exercises

See exercises.md. Ask in the forum once you've tried.