I'm pretty new to programming and Python so there may be other issues with my code here. The error is in line 8 of the code.
I keep getting a syntax error on the = and if I delete that I get it on the <. I've crossed referenced with my Python book but it looks good. Any ideas as to what the issue is?
I keep getting a syntax error on the = and if I delete that I get it on the <. I've crossed referenced with my Python book but it looks good. Any ideas as to what the issue is?
#Display message print("Shipping Calculator") #Get data choice = "y" while choice.lower() == "y": cost = float(input("Cost of items ordered: ")) if cost >= 0 and <= 30.00: shipping = float(5.95) print("Shipping cost " + str(shipping)) elif cost <= 49.99: shipping = float(7.95) print("Shipping cost: " + str(shipping)) elif cost <= 74.99: shipping = float(9.95) print("Shipping cost: " + str(shipping)) elif cost > 74.99: shipping = float(0) print("Shipping cost: " + str(shipping)) elif cost < 0: print("Error! Please enter a positive number and try again. ") total = cost + shipping print("Total Cost: " + str(total)) #Get user choice choice = input("Would you like another calculation? y/n: ") #Display Bye print("Bye!")