Skip to content
Quiz · Functions · lesson 6 of 8

Quiz — recursion

What does the program print?

Python
def countdown(n):
    if n == 0:
        return "go"
    return str(n) + countdown(n - 1)


print(countdown(3))

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way