Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
datetime solution in Clear category for Unlucky Days by bravebug
from datetime import date
def checkio(year: int) -> int:
days_13 = [date(year, month, 13) for month in range(1, 13)]
fridays_13 = [day for day in days_13 if day.weekday() == 4]
return len(fridays_13)
Aug. 10, 2020