sys.stdout.flush()
This function will flush the output (e.g. print 'hello world') immdiately to the command line so that you can see the results of the program in real time.
sys.stdout.flush()
This function will flush the output (e.g. print 'hello world') immdiately to the command line so that you can see the results of the program in real time.