Writing a Python program to check loan eligibility using if-else statements

Today’s task was about applying conditional statements in Python to check loan eligibility based on income and credit score. Here’s the simple program I wrote 👇 def loan_eligiblity(income, creditscore): if income > 50000 and creditscore > 750: print('He is eligible for a loan') else: print('He is not eligible for a loan') loan_eligiblity(50000, 750) 🧠 What I learned: How to use if-else statements in Python How logical operators like and work The importance of testing boundary conditions (e.g., >= vs >) Every small step counts in becoming better at coding 🚀 #Python #CodingJourney #100DaysOfCode #LearningEveryday #PythonBeginner#Battula Venkata Narayana #1000coders

To view or add a comment, sign in

Explore content categories