# Lesson 5: loops
marks = {"Aarav": 78, "Diya": 91, "Kabir": 45, "Meera": 66, "Rohan": 33}
passed = 0
for name, m in marks.items():
    result = "Pass" if m >= 40 else "Fail"
    if result == "Pass":
        passed += 1
    print(f"{name:<6} {m:>3}  {result}")
print("Passed:", passed, "of", len(marks))
print("Squares:", [n * n for n in range(1, 6)])
balance, month = 100000, 0
while balance > 0:                 # EMI of 9000 a month, no interest, just to show while
    balance -= 9000
    month += 1
print("Months to repay:", month)
