CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #46

Before And After The Call

mediumRecursion

📄 Code

Read carefully — what does this print?
1def show(n: int) -> None:
2 if n == 0:
3 return
4 print("down", n)
5 show(n - 1)
6 print("up", n)
7 
8show(3)

🎯 Your Answer