Jan-28-2019, 09:10 PM
I apologize, after messing around a little with the code I got it to work the only problem now is that. My code is displaying both results. Standard Shipping and Express shipping at the same time. What am I doing wrong?
print ("Welcome to Delivery Express please enter S for Standard shipping or E for Express") shipping_option = input("Delivery Option:") shipping_option = shipping_option.upper() if shipping_option == "S" or "E": pounds = float(input("Please Enter Weight:")) if pounds <= 4: pounds = pounds * 1.05 print (pounds) elif pounds == 5 or pounds == 7 or pounds == 8: pounds = pounds * 0.95 print (pounds) elif pounds == 9 or pounds == 10 or pounds == 11 or pounds == 12 or pounds ==13 or pounds == 14 or pounds ==15: pounds = pounds * 0.85 print (pounds) elif pounds >= 16: pounds = pounds * 0.80 print (pounds) else: if shipping_option == "S" or "E": pounds = float(input("Please Enter Weight:")) if pounds <= 2: pounds = pounds * 3.25 print(pounds) elif pounds == 3 or pounds == 4 or pounds == 5: pounds = pounds * 2.95 print(pounds) elif pounds == 6 or pounds == 7 or pounds == 8 or pounds == 9 or pounds == 10: pounds = pounds * 2.75 print(pounds) elif pounds >= 11: pounds = pounds * 2.55 print(pounds)