print("\t*****Digital menu card*****")
print("\n\t1.Dhosa\n\t2.parota\n\t3.fried-rice\n\t4.Idli\n\t5.Roast")
Dhosa=15
parota=15
fried_rice=10
Idli=20
roast=10
def product_of_value(b,c):
d=b*c
return(d)
n=0
m="yes"
while m=="yes":
print("Avaible Items:")
print("\tDhosa:",Dhosa)
print("\tparota:",parota)
print("\tfried_rice:",fried_rice)
print("\tIdli:",Idli)
print("\tRoast:",roast)
a=str(input("\n\tEnter the item:"))
b=int(input("\tQuantity:"))
if a=="Dhosa":
if b<=Dhosa:
c=30
d=product_of_value(b,c)
print("\tAmount:",d)
Dhosa=Dhosa-b
n+=d
else:
print("sorry Your order items are not available")
m=str(input("If Any one more items(yes or no):"))
elif a=="parota":
if b<=parota:
c=12
d=product_of_value(b,c)
print("\tAmount:",d)
parota=parota-b
n+=d
else:
print("sorry Your order items are not available")
m=str(input("Any other items (yes or no):"))
elif a=="fried-rice":
if b<=fried_rice:
c=50
d=product_of_value(b,c)
print("\tAmount:",d)
fried_rice=fried_rice-b
n+=d
else:
print("sorry Your order items are not available")
m=str(input("Any other items (yes or no):"))
elif a=="Idli":
if b<=Idli:
c=10
d=product_of_value(b,c)
print("\tAmount:",d)
Idli=Idli-b
n+=d
else:
print("sorry Your order items are not available")
m=str(input("Any other items (yes or no):"))
elif a=="Roast":
if b<=roast:
c=60
d=product_of_value(b,c)
print("\tAmount:",d)
roast=roast-b
n+=d
else:
print("sorry Your order item is not available")
m=str(input("Any other items (yes or no):"))
print("\tTotal amount:",n)
Output: