print("\t*****Raju super market*****")
def product_of_value(a,b):
c=a*b
return c
Q=1
d=0
while Q<=5:
name = str(input("\n\tEnter the fruits name:"))
a = float(input("\tEnter the Quatities:"))
a1 = [120, 35, 210, 40, 140, 3]
if name==('apple'):
b=a1[0]
c=product_of_value(a,b)
print("\tAmount:",c)
Q=Q+1
elif name==('orange'):
b=a1[-2]
c=product_of_value(a,b)
print("\tAmount:",c)
Q=Q+1
elif name==('mango'):
b=a1[-3]
c=product_of_value(a,b)
print("\tAmount:",c)
Q=Q+1
elif name==('banana'):
b=a1[-1]
c=product_of_value(a,b)
print("\tAmount:",c)
Q=Q+1
elif name==('pomegranate'):
b=a1[2]
c=product_of_value(a,b)
print("\tAmount:",c)
elif name==('papaya'):
b=a1[1]
c=product_of_value(a,b)
print("\tAmount:",c)
Q=Q+1
d+=c
print("\ttotal:",d)
Output: