Skip to content

Commit 38b36ba

Browse files
committed
Added Secret Santa script
1 parent 618652c commit 38b36ba

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Fun_Stuff/data/santa_names.csv

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Names
2+
Aarzu
3+
Alfa
4+
Abhiram
5+
Reema
6+
Sneha
7+
Gokul
8+
Nirav
9+
Varun
10+
Amit Tallanki
11+
Radhika
12+
Carol
13+
Aravindh
14+
Francis
15+
Harini
16+
Nikhil
17+
Tamanna
18+
Akshay
19+
Pratik

Fun_Stuff/secret-santa-picker.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import random
2+
import sys
3+
import pandas as pd
4+
from random import shuffle
5+
6+
df = pd.read_csv("./data/santa_names.csv")
7+
names = df["Names"].tolist()
8+
names_copy = df["Names"].tolist()
9+
shuffle(names)
10+
shuffle(names_copy)
11+
length = len(names)
12+
# print(length)
13+
print("Santa-Santee")
14+
print("------------")
15+
for i in range(0,len(names)):
16+
print("{}-{}".format(names[i],names_copy[i]))

0 commit comments

Comments
 (0)