Home > Back-end >  python formulas returning 0s
python formulas returning 0s

Time:12-05

so I have basic formulas setup to recive numbers and then covert them but when running the program the converted formulas aren't calculating

dollars = 0
pounds = 0
tempF = 0
tempC = 0
globe = "\U0001F30D"


euros = dollars*.95
kilograms = pounds/2.2
tempF = tempC* 9/5 32 


print ("How many U.S dollars can you afford to spend on your trip?: ")
dollars = float(input())

print("How many pounds of chocoloate will you be buying?:")
pounds = float(input())

print("What is the tempature in degrees Celsius on the European news?:")
tempC = float(input())



print ("ITINERARY NOTES")
print ("------------------------------------------------------")

print (globe   " you have {:.2f} euros to spend." .format(euros))
print (globe   " Plan to buy {:.2f} of chocolate for family and friends".format(kilograms))
print (globe   " The tempature in Europe is {} degrees F, So dress appropriately.".format(tempF))
How many U.S dollars can you afford to spend on your trip?: 
100 
How many pounds of chocoloate will you be buying?:
5
What is the tempature in degrees Celsius on the European news?:
15

ITINERARY NOTES
------------------------------------------------------
           
  • Related