Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First - Weekend counter solution in Clear category for Weekend Counter by AQiccl135
import datetime
def checkio(from_date, to_date):
counter = 0
while from_date <= to_date:
if from_date.weekday() > 4:
counter += 1
from_date += datetime.timedelta(days=1)
return counter
Oct. 20, 2014