when you run digitalclock pythe output will look like this__ __ |__|______ ______ ______ __ __|__ __|__press ctrl- to quit how it works the digital clock program looks similar to project "countdown not only do they both import the sevseg py modulebut they must split up the multiline strings returned by sevseg getsevsegstr(with the splitlines(method this allows us to put colon made of asterisks in between the digits for the hourminuteand second sections of the clock compare this code with the code in countdown to see how it is similar and how it is different """digital clockby al sweigart al@inventwithpython com displays digital clock of the current time with seven-segment display press ctrl- to stop more info at requires sevseg py to be in the same folder view this code at tagstinyartistic"" import systime import sevseg imports our sevseg py program try while truemain program loop clear the screen by printing several newlines print('\ get the current time from the computer' clock currenttime time localtime( so we use -hour clocknot hours str(currenttime tm_hour if hours =' ' hours ' -hour clocks show : not : minutes str(currenttime tm_min seconds str(currenttime tm_sec get the digit strings from the sevseg module hdigits sevseg getsevsegstr(hours htoprowhmiddlerowhbottomrow hdigits splitlines( mdigits sevseg getsevsegstr(minutes mtoprowmmiddlerowmbottomrow mdigits splitlines( sdigits sevseg getsevsegstr(seconds project #