LearnPy Hub
← Modules & the Standard Library problems
Medium

Add Days

Read a date and a number of days, and print the date that many days later in YYYY-MM-DD form, using timedelta.

Input

A date, then an integer.

Output

A date.

Sample 1

Input
2026-10-28
10
Output
2026-11-07

Sample 2

Input
2024-02-28
1
Output
2024-02-29
solution.py
Output appears here
Add Days · Python practice problem · LearnPy Hub