the program must read the contents of input.txt, find the min, max and average and then print out the results in a new file.
here is my code so far
# to open the txt file in read and write mode
text_file = open('input.txt', 'r+')
# we now create a list for the numbers in the program
number_list = []
# now we create a loop that loops over each line in the txt file
for line in text_file:
number_list.append(line.split(','))
you need first to convert your array to int and then use max, min and sum, len functions :