Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- translation_dict = {'aperivol@gmail.com': 'Aggelos',
- 'vasovlaha@gmail.com': 'Mama',
- 'darksaga2006@gmail.com': 'Xristos',
- 'lperivol@gmail.com': 'Mpampas',
- 'pperivolaropoulou@gmail.com': 'Persefoni'}
- def shuffle_names(a, b):
- while any((va == vb for va, vb in zip(a,b))):
- random.shuffle(b)
- givers = translation_dict.keys()
- takers = givers[:]
- shuffle_names(givers, takers)
- for g, t in zip(givers, takers):
- print('echo "%s" | mail -s "Real Secret Santa giati jexasa tn Persa" %s'
- % (g, t))
Add Comment
Please, Sign In to add comment