Homework Help: Python Function
As the title says, I need help with my homework. So I have to create a program that will: open a file that consists of different sets of three numbers, and then output the smallest number for each line. (Note: I'm not allowed to use the min() function!!)
The program would output:
I was wondering if anyone could check my code and see what's wrong with it, because it doesn't seem to be getting the smallest number?
small_numbers = [lowest]
input_file = open("datanums.txt", "r")
number_file = input_file.readlines()
for i in range(len(number_file)):