Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First and Last solution in Clear category for The Most Frequent Weekdays by obone
from datetime import date
def most_frequent_days(a):
day = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
return [day[d] for d in sorted({date(a, 1, 1).weekday(), date(a, 12, 31).weekday()})]
June 24, 2019
Comments: