2 of 1 ·Eligibility checker

Lesson 2 · Python Foundation
Mini project using comparisons.
Conditions
Python can choose an action with if and else. Try a rule such as score >= 5. Test a score below five, exactly five and above five.
Click to zoomReal organisations run on eligibility rules: who qualifies for a scholarship, who can borrow which books, who's allowed on which trip.
Those rules are exactly the if/elif logic you just learned, applied to something that matters.
You're going to build a checker for a real set of rules — and discover along the way that writing them down precisely is harder than it sounds.
9 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.