I have a text file with many lines of numbers and wish to find the highest number. I have already found the average of all the numbers.
Here is my code so far:
file = open('max_vind_sola_enkelttall.txt', 'r')
lines = file.read
sum = 0
for lines in file:
sum += float(lines)
amount = 362
average = sum/amount
print("average is: ", average)
file.close()