On Mon, Jul 4, 2011 at 12:47 PM, Anand Balachandran Pillai < abpil...@gmail.com> wrote:
> >>> data=[(10,25, 18, 17, 10, 12, 26, 5)] > > >>> for value in zip(*data): > ... if (value[0] > 5): print 'Greater' > ... else: print 'Lesser' > Right. I wrote this and then didnt send as the OP sounds like a n00b. Btw, i got a Q: why doesnt 'any' work in this case? Like... for tup in data: if any(tup) > 5: print 'greater' else: print 'lesser' -V _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers