Challenge 3: Days Until a Parsed Deadline — Possible Solution ==================================================================== import datetime deadline_str = "2026-12-25" deadline = datetime.datetime.strptime(deadline_str, "%Y-%m-%d").date() today = datetime.date.today() days_remaining = (deadline - today).days print(days_remaining) Output (will vary depending on the actual current date): 169 WHY THIS WORKS AS AN ANSWER ------------------------------ datetime.datetime.strptime(deadline_str, "%Y-%m-%d") reuses the chapter's own strptime() example directly — the format string "%Y-%m-%d" tells Python exactly how to interpret "2026-12-25": %Y for a 4-digit year, %m for a 2-digit month, %d for a 2-digit day, matching the chapter's own %Y-%m-%d formatting example used with strftime. strptime() always returns a full datetime (date AND time, defaulting the time portion to midnight), so .date() is chained on the end to extract just the date portion — this keeps it consistent with datetime.date.today(), which is date-only, the same date-vs-datetime distinction the chapter opened this section with. datetime.date.today() reuses today's date exactly as introduced back in Course 1, Chapter 9. (deadline - today).days reuses the same date-subtraction-produces-a- timedelta mechanic from Course 1's own Days Until a Date challenge solution — subtracting one date from another gives a timedelta, and .days extracts the whole number of days between them, which is exactly what "days remaining" asks for.