Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple_weekend_counter solution in Uncategorized category for Weekend Counter by Jon_Red
from datetime import date
def checkio(from_date,to_date):
''' Count the days of rest '''
days=(to_date-from_date).days+from_date.weekday()
return(days+2)//7-int(from_date.weekday()==6)+(days+1)//7
June 26, 2020