Question: Write a code which takes a text file which contains record of product sales. Each record is placed on a separate line, and consists of
Write a code which takes a text file which contains record of product sales. Each record is placed on a separate line, and consists of space separated fields containing from left to right the date time of the sale, the product name, and the number of product items sold quantity respectivelyWrite a Python program to find and display the median quantity sold for each product found in the text file The output must be alphabetized by product name. Read and store the sales data in a dictionary, with product names as dictionary keys while the corresponding values should be the lists of sold quantities. Make use of the dictionary's get method.
I ALREADY HAVE THE TEXT FILE, I CANT ATTACH IT ON CHEGG, PLEASE JUST WRITE THE CODE WITH IN MIND I HAVE THE TEXT FILE
Example of how it is in the text file, PLUS MORE, NOT ONLY THESE
::Skrewdriver,
::Pliers,
::ACDC Tester,
::Snips,
::Connector,
::Pliers,
::Alligator Clip,
::Pliers,
::Alligator Clip,
::Ring Terminal,
::Connector,
::Alligator Clip,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
