It's Autumn! Prices fall like leaves! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Time
Date
Datetime
Summary
15. Question 1

Instruction

Okay, here is the first question!

Exercise

Write a function named find_nearest_monday(date) that, given a date or datetime, returns the date/datetime of the Monday after the given date date. If date is Monday itself, return the next Monday.

Stuck? Here's a hint!

In the function, create a loop that will add one day to a date or a datetime until it reaches a Monday.