Question: 38. A text file named data. dat is stored on a computer's hard drive. In a text editor the file displays the snippet below. The
38. A text file named data. dat is stored on a computer's hard drive. In a text editor the file displays the snippet below. The entire file is over one hundred lines long. Contents of data, dat: I Created on November 15,2022 - Time, Temperature, Nindspeed A (min),(degF),(knots) 0,33.47,1.27 5,32.59,1.95 10,33,62,0.76 15,33.79,1.12 Write a Python program that reads the contents of this flle, assigns the header lines to a variable that is a list of strings, and assigns the data to a variable that is a floating point NumPy array that contains all of the data in the file. (The data should be in an n3 array.) Then, find and print the minimum temperature and maximum windspeed recorded in the file. Write this code using standard file 1/0 commands; do not use any csv reader that you may know of in some Python package. Eample output (using entire file): Minimum temperature is 31.28 F Maximun windspeed is 7.82 knota
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
