GH avatar Bite 19. Write a simple property

Write a simple Promo class. Its constructor receives a name str and expires datetime.

Add a property called expired which returns a bool.

Checkout the tests and datetime module for more info. Have fun!

149 out of 155 users completed this Bite.
Will you be Pythonista #150 to crack this Bite?
It takes an average of ~30 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 5.83 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Login and get coding
We use Python 3.7