<div dir="ltr">Yes Simultaneously means all three running at the same time, I looked up zip just now, but will it not disturb my dictionaries ? <div style>And yes the dictionaries have same number of keys. </div><div style>
<br></div><div style>thanks </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 12:16 PM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Apr 23, 2013 at 4:40 PM, inshu chauhan <<a href="mailto:insideshoes@gmail.com">insideshoes@gmail.com</a>> wrote:<br>

> i have to implement the below line in one of my code:<br>
><br>
> for  p in sorted(segments.iterkeys()) and for k in<br>
> sorted(class_count.iterkeys()) and for j in sorted(pixel_count.iterkeys()):<br>
><br>
> Its giving me a syntax error which is obvious, but how can I make all three<br>
> for loop run simultaneously or any other way to do this simultaneous work<br>
> ???<br>
<br>
</div></div>Define simultaneously. Do the three dictionaries have the same number<br>
of keys? If so, look up zip() or itertools.izip; if not, you may have<br>
to more clearly define "simultaneous".<br>
<br>
ChrisA<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>