0 out of 68 challenges solved

Fix the error in Python code #13

Can you spot the error in the code below? An error may occur when the computer does not understand what you are trying to do. The title of this is intentionally vague to avoid giving you any hints.

# Fix the error in the code below
def add_to_shopping_list(item, current_list=[]):
  Adds an item to the shopping list.

    item (str): Item to be added
    current_list (list): (optional), the current list of items; assume empty if not provided

    list: List of items in the shopping list
    return current_list