GREETINGS TO ALL OF YOU!!!!
WE ARE GOING TO MAKE A SIMPLE INTEREST CALCULATOR AND WE WILL BE UNDERSTANDING THE CONCEPT OF ERROR HANDLING TOO!!!
SO LET'S GET STARTED
P=float(input("enter the principal amount"))
R=int(input("enter the rate"))
T=float(input("enter the time"))
try:
interest=(P*R*T)/100
except:
print("Opps!! something went wrong")
else:
print("Operation successful: ",interest)
finally:
print("thank you for using Simple Interest Calculator")
thank you guys!!!
instagram id : https://www.instagram.com/vaibhavsingh_star/
Comments
Post a Comment