When Is It Due Back?

Python for AIMedium+10 XP+10

When Is It Due Back?

A library lends books for a set number of days.

Task: write due_date(borrowed, loan_days) that returns the due date as text in the form "14 March 2026".

  • borrowed is text like "2026-03-14"; loan_days is a whole number.
  • The day is always written with two digits: "05 April 2026", not "5 April 2026".
  • The month is written as its full English name.

Examples

borrowed = "2026-03-14"
loan_days = 30
returns '13 April 2026'
borrowed = "2026-12-20"
loan_days = 14
returns '03 January 2027'

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run