Quiz · Functions · lesson 6 of 8
Quiz — recursion
What does the program print?
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.