Skip to content

Instantly share code, notes, and snippets.

@AnnikaNoren
Created October 27, 2020 17:05
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 AnnikaNoren/65735663ddcf27c4bf1327226e12146e to your computer and use it in GitHub Desktop.
Save AnnikaNoren/65735663ddcf27c4bf1327226e12146e to your computer and use it in GitHub Desktop.
import datetime
from datetime import date
def has_friday_13(date):
month, day, year = (int(i) for i in date.split(' '))
spooky = datetime.date(year, month, day)
return spooky.strftime("%A") == "Friday"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment