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!

121 out of 125 users completed this Bite.
Will you be Pythonista #122 to crack this Bite?
Average Bite difficulty 1-10 rating: 5.6
» Up for a challenge? 💪

Github login button
We use Python 3.7