#DIGITAL CLOCK IN PYTHON
#clcoding
from datetime import datetime
from time import sleep
while 1:
n=datetime.now()
print(datetime.strftime(n,"%H:%M:%S"), end='\r')
sleep(1)
Author May 23, 2021 Python No comments
Can you guess the output of the second piece of code?🐍
Posted by Python Coding on Tuesday, 16 February 2021
0 Comments:
Post a Comment