(inventory, addedItems)
return updatedInventory
Add Items to inventory
        Args:
            inventory (dict):  Inventory containing items and their counts
            addedItems (list): Items to add to inventory

        Returns:
            updatedInventory (dict): Inventory containing updated items and their counts
Add Items to inventory
        Args:
            inventory (dict):  Inventory containing items and their counts
            addedItems (list): Items to add to inventory
Add Items to inventory Args : inventory ( dict ) : Inventory containing items and their counts addedItems ( list ) : Items to add to inventory
def addToInventory(inventory, addedItems):
    """ Add Items to inventory
        Args:
            inventory (dict):  Inventory containing items and their counts
            addedItems (list): Items to add to inventory

        Returns:
            updatedInventory (dict): Inventory containing updated items and their counts
    """
    updatedInventory = dict(inventory)
    # your code goes here
    for item in addedItems:
        updatedInventory.setdefault(item, 0)
        updatedInventory[item] += 1

    return updatedInventory
def addToInventory ( inventory , addedItems ) : updatedInventory = dict ( inventory ) # your code goes here for item in addedItems : updatedInventory . setdefault ( item , 0 ) updatedInventory [ item ] += 1 return updatedInventory