(PYTHON) I\'m trying to code part of a Amazon/Ebay-esque delivery program. The p
ID: 3581230 • Letter: #
Question
(PYTHON) I'm trying to code part of a Amazon/Ebay-esque delivery program. The part I need help with is the part that requires there to be a delivery charge added to the total cost. The delivery charge varies based on the total cost. If the total cost (before delivery and tax) is between $0 to $5, the delivery charge is $5. If the total cost is between $5.01 to $10, then the delivery charge is $3. If the total cost is greater than $10, then there is no delivery charge ($0.00). How would I code this part of the program?
Explanation / Answer
charge=0
cost=input("enter cost")
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.