Last active
November 30, 2020 00:49
-
-
Save carlynorama/a63b66157c2f2963c9ff9bbe657cfcee to your computer and use it in GitHub Desktop.
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/env python3 | |
# Pick 15 days of December for each of us... my way | |
# Tod's way: https://gist.github.com/todbot/3b94af3fa4a177ff9ae6c7b4bc912afe | |
# Tod & Carlyn 2020 | |
# | |
import random | |
days = [d+1 for d in range(30)] | |
print("days:", days) | |
random.shuffle(days) | |
carlyn_days = days[:15] | |
tod_days = days[15:] | |
carlyn_days.sort() | |
tod_days.sort() | |
print(len(carlyn_days), "carlyn_days:",carlyn_days) | |
print(len(tod_days), "tod_days:",tod_days) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment