an e-commerce company is planning to give a special discount on all <b><i>its</i></b> products to its customers for the christmas holidays. input: 7 9-13 8-7 18-10 18 output: 2
price = int(input("Enter the value of your price: "))
print(price)
print("9-13 8-7 18-10")
print("18")
if price >= 9 and price <= 13:
print("1")
elif price >= 7 and price <= 8:
print("2")
elif price >= 10 and price <= 18:
print("3")
Enter the value of your price: 7
7
9-13 8-7 18-10
18
2
Comments
Leave a comment