Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
isleap, weekday, day_name solution in Clear category for The Most Frequent Weekdays by Olpag
from calendar import isleap, weekday, day_name
def most_frequent_days(year):
days = (weekday(year, 1, day) for day in range(1, 2 + isleap(year)))
return [day_name[day] for day in sorted(days)]
March 21, 2019
Comments: