import time
def exitpro(t):
        a=0    
        while t>0:
            dotcount = (a % 3) + 1
            timer="Loading" + "." * dotcount + " " * (3 - dotcount)
            print(timer, end='\r', flush=True)
            time.sleep(0.5)
            t-=0.5
            a+=1
def countdown(t):
        while t:
            mins,secs=divmod(t,60)
            cdown="%02d:%02d"%(mins,secs)
            print(cdown,end='\r',flush=True)
            time.sleep(1)
            t-=1
    
t=int(input("enter time in seconds "))
countdown(t)
exitpro(t)
I want both the functions to run simultaneously. Is there any way to do that in python in jupyter?
 
    