0

I don't understand how to get the result to show decimals. I'm sure this is super easy and I'll kick myself but I've looked all over and can't figure this out.(yes I'm very new to python) Thanks in advance.

weight = input ("Enter Weight: ")

if int(weight) <= 2:
    rate = 1.10
elif int(weight) > 2 and int(weight) <= 10:
    rate = 2.20
else:
    rate = 3.70

charge = int(weight)*int(rate)

print (charge)
Nlol
  • 1
  • 1
  • 3

0 Answers0