Given a CSV file of friends who want to be assigned in order to exchange gifts:
- Write a script that processes a CSV file (use the example file below)
- Randomly assign givers to receivers
- Print each person's email followed by the email of the person they're assigned to (see example output below)
Additional requirements:
- A person cannot give a gift to themselves
- Ensure everyone gives only one gift, and receives only one gift
- It should be random - if we run the script multiple times we should get different results.
Example output:
turner_it_around@hotmail.com -> spatel76@gmail.com
spatel76@gmail.com -> ahmed@live.ca
ahmed@live.ca -> turner_it_around@hotmail.com