Created
October 27, 2020 17:05
-
-
Save AnnikaNoren/65735663ddcf27c4bf1327226e12146e to your computer and use it in GitHub Desktop.
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
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