Recursion
Count the number of items in a list, using recursion.
For example:
>>> count_recursively([])
0
>>> count_recursively([1, 2, 3])
3
We’ve written a file, countrecursively.py, with a function, count_recursively:
def count_recursively(lst):
"""Return number of items in a list, using recursion."""
However, this is unimplemented.