On Tue, Apr 23, 2013 at 5:13 PM, inshu chauhan <insidesh...@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 -- http://mail.python.org/mailman/listinfo/python-list