def printmp ( msg ) : filler = ( 80 - len ( msg ) ) * ' ' print ( msg + filler , end = '\r' ) sys . stdout . flush ( )
how to delay print aprearing using print in python
Print temporarily until next print overrides it .
def printmp(msg):
    """Print temporarily, until next print overrides it.
    """
    filler = (80 - len(msg)) * ' '
    print(msg + filler, end='\r')
    sys.stdout.flush()