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!

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

Login and get coding
We use Python 3.7