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!

99 out of 102 users completed this Bite.
Will you be Pythonista #100 to crack this Bite?
Average Bite difficulty 1-10 rating: 6.5
» Up for a challenge? 💪

Github login button
We use Python 3.7