Created
March 17, 2011 18:16
-
-
Save 74hc595/874830 to your computer and use it in GitHub Desktop.
Displays the day of the week in the style of legendary singer/songwriter Rebecca Black.
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 | |
# | |
# rebeccablack.py | |
# Displays the day of the week in the style of legendary | |
# singer/songwriter Rebecca Black. | |
# | |
# Definitely not written by Matt Sarnoff | |
# | |
# TODO: | |
# - translate to other languages | |
# (on second thought, that's a really bad idea) | |
from datetime import date, timedelta | |
today = date.today() | |
yesterday = today - timedelta(days=1) | |
tomorrow = today + timedelta(days=1) | |
dayafter = today + timedelta(days=2) | |
todaystr = date.strftime(today, "%A") | |
yesterdaystr = date.strftime(yesterday, "%A") | |
tomorrowstr = date.strftime(tomorrow, "%A") | |
dayafterstr = date.strftime(dayafter, "%A") | |
print """Yesterday was %s, %s | |
Today i-is %s, %s | |
We we we so excited | |
We so excited | |
We gonna have a ball today | |
Tomorrow is %s | |
And %s comes afterwards...""" % \ | |
(yesterdaystr,yesterdaystr,todaystr,todaystr,tomorrowstr,dayafterstr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment