Professional Documents
Culture Documents
Grocery Shop Amit XII-F - Naresh Rawat
Grocery Shop Amit XII-F - Naresh Rawat
PROJECT
MADE BY-
#main
print("grocery shop")
while True:
print("menu \n 1-info \n 2-net amount \n 3-writing in a file \n 4-display \n
5-search \n 6-sys.exit")
ch=int(input("enter your choice"))
if ch==1:
info()
if ch==2:
calc()
if ch==3:
write_in_file()
if ch==4:
display()
if ch==5:
search()
if ch==6:
sys.exit()
OUTPUT
grocery shop
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice1
INFORMATION
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice2
list of item
1-rice_rs.100 \ 2-wheat flour_rs.50
enter your item1
enter the qyt3
net amout 300
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice3
ENTER NO OF ITEMS2
Enter item 1 details
enter the itemno5
enter the item namechocolate
enter the rate50
enter the qty50
Enter item 2 details
enter the itemno6
enter the item nameMilk
enter the rate60
enter the qty100
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice4
{'itemno': 5, 'iname': 'chocolate', 'rate': 50, 'qyt': 50}
{'itemno': 6, 'iname': 'Milk', 'rate': 60, 'qyt': 100}
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice5
enter the itemno to search5
record found
{'itemno': 5, 'iname': 'chocolate', 'rate': 50, 'qyt': 50}
menu
1-info
2-net amount
3-writing in a file
4-display
5-search
6-sys.exit
enter your choice6
LIMITATION