Skip to content

Commit 9e6b059

Browse files
Create textual clock.py
1 parent fd8c19f commit 9e6b059

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

textual clock.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import time
2+
from time import strftime
3+
from time import sleep
4+
import os
5+
6+
def time():
7+
string=strftime('%A %D %H:%M:%S: %p')
8+
print(string)
9+
sleep(1.00)
10+
os.system("cls")
11+
time()
12+
13+
14+
time()

0 commit comments

Comments
 (0)