L=3
a=1
while a<L:
b=1
while b<L:
c=1
while c<L:
name = chr(ord('a') + c)
print a, b, c, name
c=c+1
b=b+1
a=a+1
print 'End'
This example gives an idea about how you run nested loops and create automatically generated file names inside a loop.
If you still don't get it, I can just write you the exact code you need,
cheers!
View this message in context: Re: nesting for statements?
Sent from the Python - python-list forum at Nabble.com.
-- http://mail.python.org/mailman/listinfo/python-list