Standard library · 7 / 17 Exercise Medium

Due date

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-DD format.
  • 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 with strftime("%d/%m/%Y").
Input
2026-11-13
30
Output
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