I am trying to use a program in Python that using recursion return the highest value in a list. If the list does not have any inner lists it works, however if it has inner lists it stops working.
def max_num_in_list(list):
max = list[0]
for j in list:
if j > max:
max = j
return max
print(max_num_in_list([5,8,[78,99],98,25]))