Skip to content

Instantly share code, notes, and snippets.

@74hc595
Created March 17, 2011 18:16
Show Gist options
  • Save 74hc595/874830 to your computer and use it in GitHub Desktop.
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.
#!/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