tracking completion status in loop
<p>In this loop, the output i am expecting is a '.' to be printed after each url in the tuples list gets downloaded . The idea is a sort of progress bar to tell me that the script hasn't crashed or anything. But while running, all the '.'s are getting printed together after all the files have been downloaded. why?</p>

<pre><code>for tuple in tuples:
    urllib.urlretrieve(tuple[0],'/media/aux1/pythonary/getxkcd_files/strip'+str(number))
    print'.',
    hypertext='&lt;h2&gt;'+tuple[2]+'  xkcd no.-'+str(number)+'&lt;/h2&gt;&lt;p&gt;&lt;img src="getxkcd_files/strip'+str(number)+'" title="'+tuple[1]+'"/&gt;&lt;/p&gt;'
    f.write(hypertext)
    number+=1
</code></pre>
