Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Python Coursework

1 answer below »
Python Coursework
Answered Same Day Jul 14, 2021

Solution

Harsimran answered on Jul 14 2021
165 Votes
# -*- coding: utf-8 -*-
"""ass.ipyn
Automatically generated by Colaboratory.
Original file is located at
https:
colab.research.google.com/drive/1qRjf3BRjV4yhJML6j0gD9yJBocThHoXn
"""
def calculate_discount(price):
if(price >0 and price < 10):
return 0 #No coupon
elif(price >=10 and price <=60):
return 8 #8% dicount
elif(price >60 and price <=150):
return 9 #9% discount
elif(price >150 and price <=210):
return 10 ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here