+ 1
How do I create a countdown program for the current year to next year in python
Example : I I signed up in Annual subscription and I want to know how much is left like rmainining 366 next day print remaining 365, 364, 363,.....
5 Respostas
+ 4
For all of you if you run python version before 3.7: You can use Annas programm but you have to replace “fromisoformat()” like shown here:
#to_ = datetime.fromisoformat('2020-01-01')
to_ = datetime(2020, 1, 1)
Reason is that fromisoformat() is new since 3.7
+ 2
Lothar Thank you! I didn't know that fromisoformat() was introduced so recently
+ 1
Thank you
0
Thank you Lothar