def stdoutwriteline ( * args ) : s = "" for i in args : s += str ( i ) + " " s = s . strip ( ) sys . stdout . write ( str ( s ) + "\n" ) sys . stdout . flush ( ) return s
how to write print in two line in python
def stdoutwriteline(*args):
    """
    @type args: tuple
    @return: None
    """
    s = ""

    for i in args:
        s += str(i) + " "

    s = s.strip()
    sys.stdout.write(str(s) + "\n")
    sys.stdout.flush()

    return s