(out=sys.stdout)
Clear the screen by moving the cursor to top-left corner and
    clear the content
Clear the screen by moving the cursor to top-left corner and
    clear the content
Clear the screen by moving the cursor to top - left corner and clear the content
def clear_screen(out=sys.stdout):
    """
    Clear the screen by moving the cursor to top-left corner and
    clear the content
    """
    out.write('\x1b[H\x1b[J')
def clear_screen ( out = sys . stdout ) : out . write ( '\x1b[H\x1b[J' )