0
What is the issue?(Trying to make the computer find the biggest number in the list)
def max_int_in_list(my_list): Num = my_list biggestNum = my_list[0] if Num > biggestNum: checkotherNum = my_list[0-5] else: print(biggestNum + â is the biggest numberâ) my_list = [5, 2, -5, 10, 23, -21] print(max_int_in_list(my_list)) # trying to make the program look for the biggest number and printing it
1 Answer
+ 3
Would you describe how do you want the program to work?
There are few issues in the code, and there is another way to do with a built-in function.