Having some trouble running this. Basically I just want to get an amount and if it's more than 50 free shipping and less than charge 10 extra dollars. I keep on getting an error about converting a float to a str implicity? I thought my input should be considered a float?
#declare flags
shippingCharge = 10
freeShipping = False
#Get number and convert to float?
purchaseAmount = float(input("\nHow much is the purchase amount? "))
if (purchaseAmount) >= 50 :
freeShipping = True
print("Your purchase amount is " + purchaseAmount + "$ and shipping is free!")
else :
print("Your purchase amount is " + purchaseAmount + "$ and shipping is " + shippingCharge + "$.")
purchaseAmount = shippingCharge + purchaseAmount
print("Your new total is " + purchaseAmount)
print ("Have a nice day and thank you for shopping with us.")