I have a simple for loop in a Python script:
for filename in filenames:
outline = getinfo(filename)
outfile.write(outline)
This for loop is part of a larger script that extracts data from HTML pages. I have nearly 6GB of HTML pages and want to do some test runs before I try it on all of them.
How can I make the loop break after a set number of iterations (lets say 100)?