Question: Python Programming: Create a program that opens a file named Temperature.dat containing several daily temperatures. Then, write a file called WeeklyAveragess.dat that contains the average
Python Programming:
Create a program that opens a file named Temperature.dat containing several daily temperatures. Then, write a file called WeeklyAveragess.dat that contains the average of every 7 days of temperature data (so, if there are 14 days of data in the first file, there will be 2 temperatures in the second file, one averaging the first 7 days, and one averaging the second).
You can assume that the number of days in the Temperature.dat file is a multiple of 7.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
