def simple_intrest(principle, rate , time):
    intrest = (principle * rate * time )/100
    return intrest
    
principle = float(input("Enter the intrest amount: "))
time = float(input("Enter tje time in year: "))

senior = input("Are you a senior citizen (YES/NO): ").lower()

if senior == "yes":
    rate = 12.0
else:
    rate = 10.0 
    
intrest = simple_intrest(principle, rate, time)

print(intrest)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: