# Lesson 3: making decisions with if / elif / else
sales, target, days_absent = 505000, 450000, 4
if sales >= target * 1.1:
    rating = "A"
elif sales >= target:
    rating = "B"
else:
    rating = "C"
print("Rating:", rating)
if sales >= target and days_absent <= 2:
    print("Star performer")
else:
    print("No star this month")
amount = 85000
discount = 0.08 if amount >= 100000 else 0.05 if amount >= 50000 else 0.02 if amount >= 10000 else 0
print(f"Discount on Rs {amount:,}: {discount:.0%}")
