def erase_lines ( n = 1 ) : for _ in range ( n ) : print ( codes . cursor [ "up" ] , end = "" ) print ( codes . cursor [ "eol" ] , end = "" )
python go to end of line python
Erases n lines from the screen and moves the cursor up to follow
def erase_lines(n=1):
    """ Erases n lines from the screen and moves the cursor up to follow
    """
    for _ in range(n):
        print(codes.cursor["up"], end="")
        print(codes.cursor["eol"], end="")