Skip to content

Instantly share code, notes, and snippets.

@chrisfarnham
Last active November 20, 2018 14:23
Show Gist options
  • Save chrisfarnham/45cc2859e5ea8166cef5171f0f747d41 to your computer and use it in GitHub Desktop.
Save chrisfarnham/45cc2859e5ea8166cef5171f0f747d41 to your computer and use it in GitHub Desktop.
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment