Im&nbsphaving trouble finding a way to make my recursive funct

I’m having trouble finding a way to make my recursive function go through a list and everytime it iterats to the next value it give my ‘unsubscritable ‘make this function check the entered list for the maximum value with out using maxdef maxInt(mylist):    greater = 0    counter=0    if mylist[counter] > greater :        greater= mylist[counter]        maxInt(mylist[counter+1])    elif mylist[counter]< greater:            maxInt(mylist[counter + 1])    return greater