def printGroceryList(self, recipeList): groceryList = GroceryList(recipeList) for item in groceryList.getList(): print item.toString()