Answered step by step
Verified Expert Solution
Link Copied!

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)
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
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago