Posts by Thays2003 • 1 point
1 post
-
-2
votes0
answers28
viewsQ: Recursive function to return largest element in a list
Recursive function that receives a lista and return the highest value from that list. def maior(lista): maior=0 if len(lista)==0: return lista elif len(lista)==1: return lista else: for i in lista:…