Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Weekend Counter by tarjeii
import datetime
from datetime import date
def checkio(x,y):
rest = 0
while x <= y:
if x.weekday() == 5 or x.weekday() == 6:
rest += 1
x += datetime.timedelta(1)
return rest
Nov. 26, 2015