Last active
June 10, 2021 07:55
-
-
Save sinistamunkey/3320677a76bac74d9d5ba6373194a262 to your computer and use it in GitHub Desktop.
Craig David schedule generator
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 python | |
from datetime import datetime | |
class CraigDavid(object): | |
def __call__(self, day): | |
day = day.lower() if day else '' | |
if day == 'monday': | |
return 'met this girl' | |
if day == 'tuesday': | |
return 'took her for a drink' | |
if day in ['wednesday', 'thursday', 'friday', 'saturday',]: | |
return 'making love' | |
if day == 'sunday': | |
return 'chilling' | |
person = CraigDavid() | |
print person(datetime.now().strftime('%A')) |
Met this.girl
.
took her for a drink
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no tests?