Download the Guru IA app

Android and iOS

Foto de perfil

Marcos

SENT BY THE APP
Estudos Gerais03/03/2025

def foo(n): if n <= 1: return n return n * f...

def foo(n): if n <= 1: return n return n * foo(n-1) print(foo(4)) Qual o resultado impresso por essa função?

def foo(n):
    if n <= 1:
        return n
    return n * foo(n-1)
print(foo(4))
Qual o resultado impresso por essa função?
Send your questions through the App
Equipe Meu Guru

Do you prefer an expert tutor to solve your activity?

  • Receive your completed work by the deadline
  • Chat with the tutor.
  • 7-day error guarantee