Skip to main content

Eligibility Checker

Challenge on lesson: Checkpoint: Conditions

CHALLENGE
Difficulty: beginner+25 XP

Implement eligible(age, income, has_job) returning true only when: age is at least 18, AND (income >= 2000 OR has_job). Age exactly 18 counts; 17 does not.

Back to lesson: Checkpoint: Conditions