Skip to content

Instantly share code, notes, and snippets.

@carlynorama
Last active November 30, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlynorama/a63b66157c2f2963c9ff9bbe657cfcee to your computer and use it in GitHub Desktop.
Save carlynorama/a63b66157c2f2963c9ff9bbe657cfcee to your computer and use it in GitHub Desktop.
#!/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