Skip to content

Commit 157e440

Browse files
Update textual clock.py
1 parent 10ebf1f commit 157e440

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

textual clock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from time import strftime
33
from time import sleep
44
import os
5+
from termcolor import colored #before you have to install termcolor : pip install termcolor
56

67
def time():
78
string=strftime('%A %D %H:%M:%S: %p')
8-
print(string)
9+
print(colored(string, "green")#you can also replace with another color
910
sleep(1.00)
1011
os.system("cls")
1112
time()

0 commit comments

Comments
 (0)