Python Coursework

1 answer below »
Python Coursework
Answered Same DayJul 14, 2021

Answer To: Python Coursework

Harsimran answered on Jul 14 2021
165 Votes
# -*- coding: utf-8 -*-
"""ass.ipynb
Automatically generated by Colaboratory.
Original file is lo
cated 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