I've created an array for my output by doing this:
for i in nameList
test_array.append({'Name': i, 'Email': memberMail, 'Department': memberDepartment})
However, later in the code, I must remove designated values in my test_array depending on their email. After that, I can easily print out what I need to my csv file.
How do I delete a specific entry from this sort of dictionary list?
For those curious, when I print the array currently it looks like this:
[{'Department': 'Public Works', 'Email': '[email protected]', 'Name': 'Joe'}, {'Department': 'Infrastructure', 'Email': '[email protected]', 'Name': 'Bob'}, {'Department': 'IT', 'Email': '[email protected]', 'Name': 'Suzanne'}]