Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python (files and dicts) please explain step by step i need to understand too you can ONLY use loops if statments functions files Dicts PLEASE
python (files and dicts)
Store (text tile) Product 1D, Name, in stock/, price e.x. 1289 , Couch, in stock, 370 5673 , table, out of stock, 50 9884 , chair, in stock, 140 turn them into dicts {1289:[ Voulue (list) {5673: [table, in stock, 370]} {9884 : [chair, in stock, 50]} option one: buying [function] Enter product 1D: 5673 \#this product is out of stock so the code will check if it's available using the dict Product ID, Name, in stock /, price out of stok if it's out of stock, it will print "this product is ont of stock" if the user entered a produclt that is in stock, it will print "Enjoy your ner product". Cont. Option 1 after the purchese we have history. txt it saves the nistory of bonght Products: Product ip, bought, price, timedate e.x. 1289 , bonght, 370,3:00,28122022 please explain step by step i need to understand too
you can ONLY use
loops
if statments
functions
files
Dicts
PLEASE DO NOT OVER COMPLICATE THE CODE
thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started