Practice Memory Diagram


Snippet

    def double_elements(inp_list, index):
        if index < len(inp_list):
            inp_list[index] *= 2
            double_elements(inp_list, index + 1)

    my_list = [1, 2, 3, 4, 5]
    double_elements(my_list, 0)
    print(my_list)

Solution

Image Description Here

Image Description

(Coming Soon)

Contributor(s): Viktorya Hunanyan