repeat a for loop x times python code example
Example 1: python loop certain number of times
# To loop n times, use loop over range(n)
for i in range(n):
# Do something
Example 2: python repet x time
for i in range(50):
print "Some thing"
# To loop n times, use loop over range(n)
for i in range(n):
# Do something
for i in range(50):
print "Some thing"