when you run countdown pythe output will look like this__ __ |__|____ __ |__|____ __ __|__|__ __press ctrl- to quit how it works after running import sevsegyou can call the sevseg getsevsegstr(function to get multiline string of the seven segment digits howeverthe countdown program needs to display colon made out of asterisks in between the hoursminutesand seconds this requires splitting up the three lines of the multiline strings for these digits into three separate strings with the splitlines(method """countdownby al sweigart al@inventwithpython com show countdown timer animation using 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 (!change this to any number of seconds secondsleft try while truemain program loop clear the screen by printing several newlines print('\ get the hours/minutes/seconds from secondsleft for example is hours minute seconds so / is hours hours str(secondsleft / and is and / is minute minutes str((secondsleft / and is seconds seconds str(secondsleft get the digit strings from the sevseg module hdigits sevseg getsevsegstr(hours htoprowhmiddlerowhbottomrow hdigits splitlines( mdigits sevseg getsevsegstr(minutes mtoprowmmiddlerowmbottomrow mdigits splitlines( project #