Following is the structure of each record in a data file named “product.dat” {"prod_code":value, "prod_desc":value, "stock": value} The values for prod_code and prod_desc are strings, and the value for stock is an integer. Write a function in PYTHON to update the file with a new value of stock. The stock and the prod_code, whose stock is to be updated, are to be input during the execution of the function.
Answers
Answered by
1
Answer:
can you write this again please I am totally not able to understand your question really sorry
But if you post it again properly I will definitely answer
Thanks bro
Similar questions