Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Just being lazy solution in Creative category for Weekend Counter by ale1ster
from datetime import timedelta as td, date
from functools import reduce
def checkio(f, t):
def gen(f, t):
while f != t+td(1):
yield (f.isoweekday() & 0x6 == 0x6)
f += td(1)
return reduce(lambda a,v: a+v, gen(f, t), 0)
June 5, 2014