Question: Please use python You are to write a program that reads data from a flat file called Month-Temp.txt. This file has month and the average

 Please use python You are to write a program that reads

Please use python

You are to write a program that reads data from a flat file called Month-Temp.txt. This file has month and the average temperature in Fahrenheit. You job is to read each line from the file using a for loop and then converting the Fahrenheit temperature to Celsius (you can do this manually by using a Lamda function to convert the temperature) and store the Month and Average temp into a Dictionary object. Then using a while loop you are to iterate through the directory and print the month and average temperature. (HINT: You may have to read all item from the dictionary object once and then go over one by one in a while loop and print the month and the average temperature.) You are required to submit the python file as well as a screenshot of the running application. Input example output example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!