Created
December 4, 2019 03:12
-
-
Save nloadholtes/49eb026fc2dea352e5794eabf05268fc to your computer and use it in GitHub Desktop.
For picking people
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def picker(giver, reciever): | |
for x in giver: | |
recv = None | |
while not recv or recv is x: | |
random.shuffle(people) | |
recv = people[0] | |
people.pop(0) | |
print("%s gives to %s" % (x, recv)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment