Skip to content

kchanakya91/Digi_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This program creates a clock in basic Python that tells time only when executed and without using a while loop.
To run the program, save it with a .py extension and run it using a Python interpreter.
The program uses the datetime module to get the current time and format it using the strftime() method.
The clock displays the time in the format "HH:MM:SS AM/PM".
The clock only displays the time once when the program is executed and does not update continuously.
If you want to create a clock that updates continuously, you will need to use a while loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages