Running simultaneuos "FOR" loops
Chris Angelico
rosuav at gmail.com
Tue Apr 23 03:35:20 EDT 2013
On Tue, Apr 23, 2013 at 5:13 PM, inshu chauhan <insideshoes at gmail.com> wrote:
> This statement is giving me the following error
>
> Statement:
> for p, k, j in zip(sorted(segments.iterkeys(), class_count.iterkeys(),
> pixel_count.iterkeys())):
You probably want to sort them separately. By the way, using
iterkeys() isn't going to do much for you, since you're sorting them;
you need to see all the keys to sort them.
ChrisA
More information about the Python-list
mailing list