Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Quiz
6. Question 5
Summary

Instruction

Amazing! Only three more questions!

Exercise

Help Vertabelo congratulate our students when they finish a course! Write a function named get_congratulations(completed_info) that accepts a tuple with two values: the name of the student, and the datetime when the student finished the course. Your task is to return the following string:

{name}, congratulations! You've completed the course on {datetime}

The {datetime} should be formatted the following way:

Friday, 05 October 2018 at 01:30 PM

Stuck? Here's a hint!

As in one of the previous questions, remember to import the datetime module first.

Use the strftime() function. You'll need the following elements: %A, %d %B, %Y, %I, %M, and %p.