Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Without datetime and calendar solution in Creative category for The Most Frequent Weekdays by lezeroq
def most_frequent_days(year):
days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
z = (year-1) % 100
y = (year-1) // 100
first = (5*y + z + y//4 + z//4) % 7
last = first + 1 + int(not(year % 4 or year % 400 and not year % 100))
return days[0:last//8] + days[first:last]
March 22, 2016
Comments: