lesson2 practice 1


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
Python

Which option correctly fills in the blank?

A. n == 0 B. n == 1 C. n < 0 D. n == 2


Practice 3 — Choose the correct recursive call

We want a function count_down(n) that prints numbers from n down to 1.

def count_down(n):
    if n == 0:
        return
    print(n)
    ______________________

Which line correctly completes the recursion?

A. count_down(n + 1) B. return count_down(n) C. count_down(n - 1) D. print(count_down(n))



Comments

There are no comments at the moment.