Looping over filenames in python
<p>I have a zillion files in a directory I want a script to run on. They all have a filename like: prefix_foo_123456_asdf_asdfasdf.csv. I know how to loop over files in a directory using a variable in the filename in shell but not python. Is there a corresponding way to do something like</p>

<pre><code>$i=0

for $i&lt;100

./process.py prefix_foo_$i_*

$i++

endloop
</code></pre>
