Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Weekend Counter by UFO665
from datetime import timedelta
def dateRange(d1, d2):
while d1 <= d2:
yield d1
d1 += timedelta(days=1)
def checkio(from_date, to_date):
return len([day for day in dateRange(from_date, to_date) if day.isoweekday() > 5])
Dec. 14, 2015