Skip to content

Instantly share code, notes, and snippets.

@gkocjan
Created December 3, 2019 08:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
secret_santa_original.py
import random
osoby = ['marek', 'przemek', 'michał', 'kamila']
osoby2 = ['marek', 'przemek', 'michał', 'kamila']
random.shuffle(osoby)
random.shuffle(osoby2)
for osoby, osoby2 in zip(osoby, osoby2):
if osoby != osoby2:
print(f'{osoby} kupuje prezent dla {osoby2}')
elif osoby == osoby2:
random.shuffle(osoby)
random.shuffle(osoby2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment