Find the final amount after Discount
cart=['1.Girls Night wear','2.Women Night Wear','3.Girls casuals',
'4.Women Kurtis','5.Girls Party Wear','6.Women Sarees',
'7.Boys Night Wear','8.Men Night Wear','9.Boys Everyday Wear',
'10.Men Everyday Wear','11.Boys Party Wear','12.Men Party Wear',
'13.Kids Uniforms']
def dress():
print("******************")
print("Textiles in the Shop")
print("******************")
for i in cart:
print(i)
def shopping():
a=0
while(1):
print("*****************")
print("What dress do you want?")
c=int(input("Type serial number : "))
if(c==1):
a=a+420
elif(c==2):
a=a+650
elif(c==3):
a=a+300
elif(c==4):
a=a+220
elif(c==5):
a=a+300
elif(c==6):
a=a+500
elif(c==7):
a=a+550
elif(c==8):
a=a+610
elif(c==9):
a=a+480
elif(c==10):
a=a+640
elif(c==11):
a=a+500
elif(c==12):
a=a+750
elif(c==13):
a=a+900
else:
print("Enter a Valid Serial Number")
ch=input("One more Dress? Enter yes/no : ")
if ch=='no':
return(a)
def bill(a):
print("Your Bill amount is Rs.",a)
if(a<250):
print("You have no Discount!")
print("Your Bill Amount is",a)
d=0
elif(a>250 and a<=500):
d=5/100*a
elif(a>500 and a<=1000):
d=15/100*a
elif(a>1000 and a<=2000):
d=25/100*a
else:
d=40/100*a
fc=a-d
print("Your Final Cost is Rs.",fc)
dress()
amt=shopping()
bill(amt)
If you have any doubts, feel free to post it in comment Section.
Comments