is_eligible(age, income, has_default) that returns True if a person qualifies for a loan: they must be at least 21 years old AND have income of at least 30000, AND must not have a default on record. Combine the conditions using Python's and/not logical operators.is_eligible(25, 40000, False)
True
Meets age, income, and has no default.
is_eligible(25, 40000, True)
False
Has a default on record, disqualifying them.
is_eligible(19, 50000, False)
False
Too young despite good income.
Combine three conditions with `and`, negating has_default with `not`.