Most Pythonic Way to Run a Process X Times [closed]
Personally: for _ in range(50): print “Some thing” if you don’t need i. If you use Python < 3 and you want to repeat the loop a lot of times, use xrange as there is no need to generate the whole list beforehand.