Evaluating a loan application

Report a typo

Use your knowledge of boolean operations to determine whether a bank should give a loan to its client. Using this program, you can evaluate the conditions for any applicant and make an informed decision about whether to proceed with the loan or not.

The program takes into account three criteria: credit score, income criterion, and the existence of another loan.

Fill in the gaps with the relevant elements
# Example of an applicant's characteristics
credit_score = 750
annual_income = 60000
has_collateral = True
has_existing_loan = False

# This criterion should be True if the applicant's annual income is at least $50,000 or they have collateral
income_criterion = (annual_income >= 50000  has_collateral)

# Decision: check if all of the criteria are satisfied
is_approved = ((credit_score > 700)  income_criterion   has_existing_loan)

Create a free account to access the full topic