python please include comments
Question 2. Write a function called UsersByPurchase Date that returns a 10 list of unique users for all users who purchased at least one item on a given date. UsersByPurchase Date(users, date) . Arguments: users - object/list of dictionaries, date - string Return: 10 list - [userID,...) Test your function using the provided groceries.json file. Your function should not open the groceries file. Sample for testing: '06-25-2014' should return a list of 2 users. Bb https Manuel Write a function cal Lab 36 Review Submission.... View Run Kernel Tabs Settings Help Nu X BB stax (1) gro X nex x Unix 2D, X Nuix Filter Notebooks/ sipynb _Jupyter_L.. Applied.ipy... Basics.pynb In_Noteboo... root: 0) 100 items 0: trips: 1) 7 items 0: date: "26-05-2014" items: 1) 13 items date: "09-13-2015" items: () 12 items 2: 3: 5: 6: userID: "4875" 1: 2: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: Saving completed groceries.json Question 2. Write a function called UsersByPurchase Date that returns a 10 list of unique users for all users who purchased at least one item on a given date. UsersByPurchase Date(users, date) . Arguments: users - object/list of dictionaries, date - string Return: 10 list - [userID,...) Test your function using the provided groceries.json file. Your function should not open the groceries file. Sample for testing: '06-25-2014' should return a list of 2 users. Bb https Manuel Write a function cal Lab 36 Review Submission.... View Run Kernel Tabs Settings Help Nu X BB stax (1) gro X nex x Unix 2D, X Nuix Filter Notebooks/ sipynb _Jupyter_L.. Applied.ipy... Basics.pynb In_Noteboo... root: 0) 100 items 0: trips: 1) 7 items 0: date: "26-05-2014" items: 1) 13 items date: "09-13-2015" items: () 12 items 2: 3: 5: 6: userID: "4875" 1: 2: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: Saving completed groceries.json