Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
always do list comp solution in Clear category for The Most Frequent Weekdays by mplichta
from calendar import day_name, isleap, weekday
def most_frequent_days(year):
result = [weekday(year, 1, 1)]
if isleap(year):
result.append(weekday(year, 1, 2))
return [list(day_name)[day] for day in sorted(result)]
Nov. 10, 2017