def printOut ( value , end = '\n' ) : sys . stdout . write ( value ) sys . stdout . write ( end ) sys . stdout . flush ( )
python print on string with newline
This function prints the given String immediately and flushes the output .
def printOut(value, end='\n'):
    """
    This function prints the given String immediately and flushes the output.
    """
    sys.stdout.write(value)
    sys.stdout.write(end)
    sys.stdout.flush()