Created
January 22, 2015 16:59
-
-
Save jvanlier/7156eea5e9fe43b37070 to your computer and use it in GitHub Desktop.
Random kamer picker
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
#!/usr/bin/python | |
import random | |
wintersporters = ['jan', 'jori', 'sander', 'erik', 'faab', 'gossie', 'maarten', 'justin'] | |
room_one = random.sample(wintersporters, len(wintersporters)//2) | |
room_two = filter(lambda x: x not in room_one, wintersporters) | |
print('Kamer 1: %s ' % room_one) | |
print('Kamer 2: %s ' % room_two) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment