Psst! Check what courses we have in our offer, and get them all here to save $727. Tick-tock—this deal ends on 3/21.
Introduction
Time
Date
Datetime
Summary
16. Question 2

Instruction

Perfect! One more question!

Exercise

Write a function named last_day_of_month(user_datetime). For any given user_datetime, the function should return a string with the last day of the month formatted as day.month.year (weekday). For instance, for an input of July 18th, 2018, the function should return 31.07.2018 (Tuesday).

Stuck? Here's a hint!

For the strftime() function, you'll need %d, %m, %Y, and %A.