Skip to content

Instantly share code, notes, and snippets.

# holiday_bourbon_exchange.py
import random
people = ['Pritesh', 'Adam', 'Ben', 'Trapper', 'Chris']
random.shuffle(people)
offset = people[1:] + [people[0]]
for giver, receiver in zip(people, offset):
print(giver, " -> ", receiver)

Keybase proof

I hereby claim:

  • I am chrisfarnham on github.
  • I am chrisfarnham (https://keybase.io/chrisfarnham) on keybase.
  • I have a public key whose fingerprint is A8A1 BDFF BDAB C85C 794C AC38 7D5A 2AE3 E314 3F83

To claim this, I am signing this object: