def solution(price, grade):
discount = {
'S': 0.05,
'G': 0.10,
'V': 0.15
}
discountedprice = int(price * (1 - discount[grade]))
return discountedprice
price = 100000
grade = "G"
total = solution(price,grade)
To embed this project on your website, copy the following code and paste it into your website's HTML: