Skip to content

Instantly share code, notes, and snippets.

@carlynorama
Last active Nov 30, 2020
Embed
What would you like to do?
#!/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