Write a python program that will read a list of temperatures


Write a Python program that will read a list of temperatures from a data file you created called tempfile.txt and display the highest two temperatures. For example
Your program displays:
The highest two temperatures found are 89 and 70
When tempfile.txt contains
32
15
65
89
44
59
70

Hint: First read the temperatures into a list, and then loop through the llst looking for the two largest values without using built-in functions such as max or sort. then rewrite the program using the built-in function sort, and finally ,rewrit it the thir time using the built-in function max.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write a python program that will read a list of temperatures
Reference No:- TGS094136

Expected delivery within 24 Hours