[BangPypers] Iterating list of tuples

Venkatraman S venkat83 at gmail.com
Mon Jul 4 08:40:42 CEST 2011


On Mon, Jul 4, 2011 at 12:07 PM, <delegbede at dudupay.com> wrote:

>
> Your new code should read this.
>
> data = [
>    (10, 25, 18, 17, 10, 12, 26, 5),
>    ]
>
> for value in data:
>      if value > 5:
>                 print " greater"
>    else:
>                print "lesser"
>

WRONG. Please dont misguide.


More information about the BangPypers mailing list