Question: How to output the value of a variable while computing

I have a loop in my program. It sometimes takes a long time to run. I want to output a value of a variable that indicate how many jobs has been done. Since this value changes constantly, so the ordinary print method will generate a large amount output. Is there any way I can make this value shows in just one area dynamically?

Please Wait...