Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started