Last active
March 10, 2025 17:38
-
-
Save karina-clio/aa96ed9de29867226eaca06125c78f62 to your computer and use it in GitHub Desktop.
Revisions
-
karina-clio revised this gist
Aug 28, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Given a CSV file of friends who want to be assigned in order to exchange gifts: 1. Write a script that processes a CSV file (use the example file below) 2. Randomly assign givers to receivers 3. Print each person's email followed by the email of the person they're assigned to (see example output below) -
karina-clio revised this gist
Aug 28, 2024 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,15 +4,15 @@ Given a CSV file of friends who want to be assigned in order to exchange gifts: 1. Write a script that processes the CSV file (example file below) 2. Randomly assign givers to receivers 3. 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 -
karina-clio revised this gist
Aug 28, 2024 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ ## Gift Exchange Given a CSV file of friends who want to be assigned in order to exchange gifts: 1. Write a script that processes the CSV file (example file below) 2. Randomly assign givers to receivers 3. Print each person's email followed by the email of the person they're assigned to (see expected output below) -
karina-clio revised this gist
Feb 7, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ I have a CSV file of friends who want to be assigned in order to exchange gifts. 1. Write a script that processes the CSV file below 2. Randomly assign givers to receivers 3. Print each person's email followed by the email of the person they're assigned to (see expected output below) Notes: -
karina-clio revised this gist
Feb 7, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ I have a CSV file of friends who want to be assigned in order to exchange gifts. 1. Write a script that processes the CSV file below 2. Randomly assign `givers` to `receivers` 3. Print each person's email followed by the email of the person they're assigned to (see expected output below) Notes: -
karina-clio revised this gist
Jan 27, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ I have a CSV file of friends who want to be assigned in order to exchange gifts. 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. -
karina-clio created this gist
Jan 27, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ ## Gift Exchange I have a CSV file of friends who want to be assigned in order to exchange gifts. 1. Write a script that processes the CSV file below 2. Randomly assign `givers` to `receivers` 3. 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 themself - 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 ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ Name,Email Alex,turner_it_around@hotmail.com Sahana,spatel76@gmail.com Ahmed Yahya,ahmed@live.ca