Unit: Unit 2: Decision Making & Conditionals • Interactive Practice
Interactive Python programming tutorial and practice in your browser.
# Verify loan qualification rules
has_stable_income = True
credit_score = 720
has_prior_defaults = False
# Qualifying condition: credit >= 700 AND income is stable, AND NOT prior defaults
is_qualified = (credit_score >= 700 and has_stable_income) and not has_prior_defaults
print("Credit Score:", credit_score)
print("Loan Approval Status:", is_qualified)