I have a CSV file of friends who want to be assigned in order to exchange gifts.
- Write a script that processes the CSV file below
- Randomly assign
giverstoreceivers - Print each person's email followed by the email of the person they're paired with (see expected output below)
Notes:
- 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.
Expected output:
turner_it_around@hotmail.com -> spatel76@gmail.com
spatel76@gmail.com -> ahmed@live.ca
ahmed@live.ca -> turner_it_around@hotmail.com