# your code goes here def funcao(lista,x): if len(lista) == 0: return 0 qtd = 1 if lista[0] > x else 0 return qtd + funcao(lista[1:],x) print(funcao(list(range(1000)), 3)) # 2
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 8, in <module> File "./prog.py", line 6, in funcao File "./prog.py", line 6, in funcao File "./prog.py", line 6, in funcao [Previous line repeated 995 more times] File "./prog.py", line 3, in funcao RecursionError: maximum recursion depth exceeded while calling a Python object