Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.