Answer to Question #284732 in Python for Pravin

Question #284732

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


1
Expert's answer
2022-01-04T16:26:23-0500
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS