Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Weekend Counter - improved solution in Uncategorized category for Weekend Counter by ddavidse
from datetime import date, timedelta
def checkio(from_date, to_date, out=0):
while from_date != to_date + timedelta(days=1):
out += from_date.weekday() in [5,6]
from_date += timedelta(days = 1)
return out
Dec. 13, 2020
Comments: