A function changes a list that it receives, and then builds a new list with the same name. def grow(items, extra): items.append(extra) items = items + [0] return items data = [1] result = grow(data, 2) print(data, result) What does the program print?
Log in to join the discussion.
Loading…