How do I create a countdown program for the current year to next year in python | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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,.....

25th May 2019, 3:12 PM
Hello World
Hello World - avatar
5 Respuestas
+ 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
25th May 2019, 5:51 PM
Lothar
Lothar - avatar
+ 2
Lothar Thank you! I didn't know that fromisoformat() was introduced so recently
25th May 2019, 6:05 PM
Anna
Anna - avatar
+ 1
Thank you
25th May 2019, 3:29 PM
Hello World
Hello World - avatar
0
Thank you Lothar
25th May 2019, 7:12 PM
Hello World
Hello World - avatar