if price>=300:
print((price*30)/100)
elif price>=200 or price<300:
print((price*20)/100)
elif price>=100 or price<200:
print((price*10)/100)
elif price>0 or price<100:
print((price*5)/100)
else:
print(0)
if price>=300:
print((price*30)/100)
elif price>=200 or price<300:
print((price*20)/100)
elif price>=100 or price<200:
print((price*10)/100)
elif price>0 or price<100:
print((price*5)/100)
else:
print(0)
Kindly elaborate your question please and send me the link of a relevant lesson.