You are given a data file, THUMlog.txt, which contains many…
Question Answered step-by-step You are given a data file, THUMlog.txt, which contains many… You are given a data file, THUMlog.txt, which contains many records. The start of the file looks like this:#DATE TIME TEMPERATURE UNIT HUMIDITY%9/28/2010 15:45:14 22.248900 C 44.7219689/28/2010 16:00:07 22.738900 C 50.5399939/28/2010 16:15:07 23.388900 C 49.3393389/28/2010 16:30:07 23.918900 C 47.5392809/28/2010 16:45:08 23.668900 C 40.700378The first line is just a comment, and is there to help a human understand the data that they are seeing; it should be ignored (hint: any line beginning with ‘#’ ought to be skipped.)Write program to read the data from the file and produce the average temperature and average humidity for all the records in the file.The output of the program will look like:Average Temperature (C): NN.NNNNNNNNNNNNNNAverage Humidity (%): NN.NNNNNNNNNNNNNN(of course, N will be replaced with the numbers you calculate.) Computer Science Engineering & Technology Python Programming COMPUTER S 2910 Share QuestionEmailCopy link Comments (0)


