Python Quest

Track 15 · Lesson 9 of 11

Dates and schedules

Compute due dates, business days and month-end dates with datetime, keep date logic testable, and express recurring schedules as cron lines.

About 50 minIntermediate4 exercises

You will be able to

  • Calculate due dates with date and timedelta, across month and year boundaries
  • Count business days while skipping a configurable weekend and holidays
  • Find dates such as the last business day of a month
  • Read and build cron expressions, converting between Python and cron weekday numbers

Included with a Formula Quest membership

It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.

View Formula Quest memberships

Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.