Using Python Version 3.12, We are creating a Super Marking Billing System. This Code Consist of Grocery Items List with Price, Customer's Grocery List and Quantity. And performing some calculations for pricing the item's quantity and Total. Then Printing the Bill for the Customer.
#Code:
items={
"Sugar" : 25,
"Rava" : 10,
"Vermicelli" : 15,
"Biscuit" : 10,
"Soap" : 20,
"Horlicks" : 65,
"Powder" : 35,
"Oil" : 55
}
cus_item,cus_qty=[],[]
total,price=0,0
print("\tWELCOME TO RAHUL TRADERS")
print("\n\tGROCERY ITEMS")
for i in items.keys():
print(i)
count=int(input("Enter Your Grocery List Count : "))
for i in range(count):
item=input("Enter the Item : ").capitalize()
qty=int(input("Enter the Quantity : "))
cus_item.append(item)
cus_qty.append(qty)
print("\n\n*******************************************************")
print("\t\tRAHUL TRADERS")
print("*******************************************************")
print("S.No\tITEM\tQTY\tRATE\tPRICE")
for i in range(1,count+1):
price=cus_qty[i-1]*items[cus_item[i-1]]
total+=price
print(f"{i}\t{cus_item[i-1]}\t{cus_qty[i-1]}\t{items[cus_item[i-1]]}\t{price}")
print("*******************************************************")
print(f"\t \t \tTotal : {total}")
print("*******************************************************")
print("\t\tTHANK YOU FOR SHOPPING WITH US")