Grocery store billing
try:
items={}
s=0
while True:
print("press q to exit")
i=input("enter Item name ")
if i=="q":
break
price=int(input("enter price "))
qty=int(input("enter qty "))
items[i]=[price,qty,price*qty]
s+=price*qty
print("bill")
print("Item\tPrice\tQuantity Total")
for key in items:
t=items.get(key)
print(key, end="\t")
for l in t:
print(l,end="\t")
print("")
print("Total Bill is ",s)
except Exception as e:
print(e)