Running simultaneuos "FOR" loops

inshu chauhan insideshoes at gmail.com
Tue Apr 23 02:40:39 EDT 2013


i have to implement the below line in one of my code:

for  p in sorted(segments.iterkeys()) and for k in
sorted(class_count.iterkeys()) and for j in sorted(pixel_count.iterkeys()):

Its giving me a syntax error which is obvious, but how can I make all three
for loop run simultaneously or any other way to do this simultaneous work
???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130423/d088e0db/attachment.html>


More information about the Python-list mailing list