Emma Boudreau
Mar 19, 2022

--

If you were curious, this would turn to

def add_element(list = None):

If type(list) == None:
list = []

To correctly represent this without mutating the list implicitly, or rather by accident.

--

--

Emma Boudreau
Emma Boudreau

Written by Emma Boudreau

i am a computer nerd. I love art, programming, and hiking. https://github.com/emmaccode

Responses (1)