I'm writting a program that will take a file as input and go through the list of numbers in the file and return the max number uing recusions. I'm not very good with recursions here is what I have so far. Also I'm not allowed to use the max command.
def Mymax(lists):
if (len(lists[1:])>0):
return
def main():
fname = input("Enter filename: ")
infile = open(fname, "r")
data = infile.read()
for line in data.splitlines():
print(eval(line))
main()