Consider the following code snippet: def countdown(n): print(n) if n > 0: countdown(n-1) What will this code do when executed?
Print the numbers from n down to 1
Cause an infinite loop
Print the number n repeatedly
Print the numbers from n up to 1

Programming Languages Exercises are loading ...