Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Weekend Counter by Moff
from datetime import date, timedelta
def checkio(d1, d2):
result = 0
while d1 <= d2:
if d1.weekday() > 4:
result += 1
d1 += timedelta(days=1)
return result
July 23, 2015
Comments: