Question: 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


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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
