Guest User

Untitled

a guest
Nov 15th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import random
  2.  
  3. translation_dict = {'aperivol@gmail.com': 'Aggelos',
  4. 'vasovlaha@gmail.com': 'Mama',
  5. 'darksaga2006@gmail.com': 'Xristos',
  6. 'lperivol@gmail.com': 'Mpampas',
  7. 'pperivolaropoulou@gmail.com': 'Persefoni'}
  8.  
  9. def shuffle_names(a, b):
  10. while any((va == vb for va, vb in zip(a,b))):
  11. random.shuffle(b)
  12.  
  13. givers = translation_dict.keys()
  14. takers = givers[:]
  15. shuffle_names(givers, takers)
  16. for g, t in zip(givers, takers):
  17. print('echo "%s" | mail -s "Real Secret Santa giati jexasa tn Persa" %s'
  18. % (g, t))
Add Comment
Please, Sign In to add comment