Objective
Create a Python program that calculates the due date of an invoice by adding some days to the issue date.
Instructions
- Read the issue date in
YYYY-MM-DDformat. - Read the number of days of the term.
- Add that term to the date with a
timedelta. - Show
Due date: DD/MM/YYYY. You can format the date withstrftime("%d/%m/%Y").
2026-11-13
30
Due date: 13/12/2026
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise