I am new to Python, and I have no idea how to do this. Any help would be greatly appreciated.
- I have 2 files that I am reading in : yesterday's people list and today's people list
- I am attempting to diff these 2 lists and print out the differences in the output
- One of the columns that I am comparing is the Supervisor for a given person yesterday and today
- Often, there are multiple people who have all have been moved from Supervisor A to Supervisor B
- I want to create a set whose name is SupervisorA_SupervisorB and then add the names of all the people who have moved from Supervisor A to Supervisor B, and then later print the set.
- How do I create a variable with a dynamic name, since the Supervisor A and B could be C, D, E, etc.
I suspect many of you will suggest dictionaries and that is fine, but I am trying to add multiple Employees to a Old-Supervisor_New-Supervisor variable. I'm still not clear on how to go about doing that.
Dynamic variables may not be the solution, and I am fine with that. The output I'm looking for is something like this
Sup A --> Sup B
Bill Harry Sally
Sup D --> Sup C
John Matt
Sup N --> Sup L
Steve Jen Sue Rob
So in case, there were multiple people who had a specific Supervisor change.