Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Weekend Counter by TovarischZhukov
from datetime import date, timedelta
def checkio(from_date, to_date):
return len([1 for i in range((to_date-from_date).days+1) if (from_date + timedelta(i)).weekday() in [5, 6]])
Dec. 14, 2015