LearnPy Hub
← Modules & the Standard Library problems
Medium

Days Between Dates

Read two dates as YYYY-MM-DD and print the number of days between them (always positive).

Input

Two lines.

Output

A number of days.

Sample 1

Input
2026-01-01
2026-12-31
Output
364

Sample 2

Input
2024-02-28
2024-03-01
Output
2
solution.py
Output appears here
Days Between Dates · Python practice problem · LearnPy Hub