[Solved]Python Code Revised Catalogpy Given Data File Called Catalogcsv Contains Information Numbe Q37034934
PYTHON CODE (revised catalog.py): You are given a data filecalled ‘catalog.csv’, which contains information about a number ofproducts. Each line in the file contains information about a singleproduct and data elements are separated by a comma. The dataelements in each line are as follows: 1. Product ID 2. Category 3.Price 4. Inventory 5. Weight 6. Condition Develop a function called‘revise catalog’ that writes a revised catalog to a new file. Thefunction should remove every out of stock product (inventory equalto zero). Then, the it should reduce the price of every usedproduct by 50% and every refurbished product by 25%. Finally, itshould write the revised catalog to a new file called ‘revisedcatalog.csv’ in the same format. The function does not accept anyarguments and does not return any values. If an item’s condition is“New”, in the “Furniture” category, and heavier than 40 lbs, itwill cost more to ship it. Therefore, increase the price of suchproducts by 25%.Note: All the prices initially have 2 decimalplaces, and should remain that way in the revised catalog
Expert Answer
Answer to PYTHON CODE (revised catalog.py): You are given a data file called ‘catalog.csv’, which contains information about a… . . .
OR

