[Tutor] the and command
Mike Hansen
Mike.Hansen at atmel.com
Fri Aug 24 18:45:31 CEST 2007
> -----Original Message-----
>
...
> > for num in l2:
> > if num in l3 and num in l4 and num in l5 and num in l6:
> > possible.append(num)
Yikes! Glancing at the code, I was reading l3, l4, l5, l6 as the numbers
13, 14, 15, 16..(Thirteen, Fourteen, Fifteen, Sixteen). I'd avoid using
variables named like that since the lowercase L looks like a one (l, 1)
in many fonts.
Mike
More information about the Tutor
mailing list