List Info

Thread: newbie exercises




newbie exercises
user name
2006-03-29 12:11:28
On 3/29/06, Keo Sophon <keosophonkhmeros.info> wrote:

> Is it bitwise operator? Could you give one example?

>>> for a in range(2):
...     for b in range(2):
...             print a, b, a&b
...
0 0 0
0 1 0
1 0 0
1 1 1

> Sophon

S.
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )