I have a very basic question:
tip = input("What is the total of your bill? ")
tip = int(tip)
print("At 15% tip, you bill would come to:", tip * 1.15)
print("\nAt 20% tip, you're looking at paying:", tip *1.2)
print("Cheers, have a nice day!")
input("\n\nPress enter to exit")
So I tried this program out, I entered 50, at 20% it is fine it gives the correct value. But at 15%, it gives me 57.49999999999999. Did I do something wrong?