Output intermediate results during the runtime of a loop
Subject: Output intermediate results during the runtime of a loop
From: mok-kong shen
Date: Wed, 28 Jul 2010 23:52:05 +0200
If one has a for-loop consisting of, say, 10 steps and the computation
of each step takes quite some time, is it possible to print out
something at the end of each step during the runtime of the loop?
(I tried 'print', but the 10 outputs came out all together at the end
of procesing of the entire loop.)
Thanks.
M. K. Shen