How to constantly update Python


#1

I have completed this section of python. However, I would like to know how to keep my project updated.
For example, I want the time on the project to keep constantly changing, much like an actual clock. If anyone has found a way to do this, please tell me how!


#2

python has a datetime modulo, which you can use to get the current time:

from datetime import datetime
datetime.now()

then make it sleep for a second, and print the time again and so on.

You can look into the datetime modulo on how to get a nicer format and additional information


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.