LearnPy Hub
← Modules & the Standard Library problems
Hard

Working Days in Bangladesh

In Bangladesh the weekend is Friday and Saturday. Read two dates YYYY-MM-DD (the first not after the second) and a line of holiday dates (or -). Using datetime and timedelta, count the working days from the first date to the second, both included, skipping weekends and holidays.

Input

Two dates, then holidays.

Output

One integer.

Sample 1

Input
2026-11-01
2026-11-30
-
Output
22

Sample 2

Input
2026-12-14
2026-12-20
2026-12-16
Output
4
solution.py
Output appears here
Working Days in Bangladesh · Python practice problem · LearnPy Hub