Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
lambda solution in Clear category for Weekend Counter by kalauroma7997
from datetime import date, timedelta
checkio = lambda date1, date2: sum(1 for day in range((date2-date1).days + 1) if (date1 + timedelta(days=day)).isoweekday() in [6, 7])
Aug. 26, 2020