We use Python 3.6

go back Level: Beginner (img: BG / score: 2) level Bite 19. Write a simple property

75 out of 77 users completed this Bite ...
Will you be Pythonista #76 to crack this Bite?
Average Bite difficulty 1-10 rating: 6.0
» Up for a challenge? 💪

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!

Github login button