Question: For this task, you are to write code that reads and analyses prices from a text file. Instructions Run the following code cell to download

For this task, you are to write code that reads and analyses prices from a text file. Instructions Run the following code cell to download a price list to your Google Drive. This file is a text file with one price (in dollars) per line. You can view the contents of this file yourself by clicking this link. Now that you have the prices file downloaded, your job is to write some Python code which reads and analyses those prices. a) Reading the prices into a list Firstly, you must read all of the prices from the file. Code which opens the file has been provided for you. Write code which reads from the file object prices_file, populating a list of numbers representing the prices that came from the file. Give your list variable an appropriate name. Hint: you do not need to remove the trailing newline character from each line. b) Analysing the prices Next, you must write code which finds the the average price of items priced at $125 or more and find the the number of items that are prices below or above average price. You are to perform these computations by aggregating your list with a loop-do not use existing functions/methods like len, min, sum, or sort. Display the computed values to two decimal places using f-strings. Refer to the last part of Topic 4 for simple examples of aggregation using a loop. You may assume that no item is priced $9999 or more. Criteria
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
