Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Weekend Counter by panaro32
from datetime import date
def checkio(a,b):
c,d = (b-a).days+1,a.weekday()
return c//7*2+(d+c%7>5)+(d+c%7>6)-(d==6)
May 16, 2014
Comments: