The Business:
Smart-Mart is a convenient that is located in Toronto, Canada. The store needs an application to use it in its daily business. The application will be written by your company for the store.
The Application Description:
def product_details():
print("Enter your product details to save it to showcase to the
customers")
c=0
gr=[]
gr1={}
while True:
p=input("Enter the product number")
p1=input("Enter the product name")
p2=input("Enter the product description")
p3=input("Enter the product unit price")
p4=input("Enter the product expiry date")
gr.append(p)
gr.append(p1)
gr.append(p2)
gr.append(p3)
gr.append(p4)
gr1[c]=gr
c+=1
x=input("Do you want to add more y/n")
if x=="n":
print(gr1)
break
gr=[]
return gr1
def indiual():
gr1{}
gr1=product_details()
print(gr1,"enter the number of the product which you wanna
buy")
c=input()
print("You bought",gr1[c])
return gr1[c]
def stokingreport():
print("enter 1 if you want to buy 2 to see the report")
ab={}
count=0
c=input()
if c==1:
while True:
ab[count]=indiual()
count+=1
check=input("Do you want to continue shoping y/n")
if check=="n":
print(ab)
break
if c==2:
print(ab)
product_details()
stokingreport()
Hope it answers your question
Have a nice day
Get Answers For Free
Most questions answered within 1 hours.