Recursion
Print items from a list using recursion.
For example, if you have a list of [1, 2, 3]
:
>>> print_recursively([1, 2, 3])
1
2
3
We’ve included a file, printrecursively.py, with a function, print_recursively:
def print_recursively(lst):
"""Print items in the list, using recursion."""
However, this is unimplemented.