Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Weekend Counter by Juge_Ti
from datetime import date
def checkio(d1, d2):
q, r = divmod((d2 - d1).days, 7)
d= d1.weekday()
return 2*q + (d <= 5 <= d+r) + (d <= 6 <= d+r)
Sept. 22, 2013