[Tutor] newbie exercises

Steve Nelson sanelson at gmail.com
Wed Mar 29 14:11:28 CEST 2006


On 3/29/06, Keo Sophon <keosophon at khmeros.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.


More information about the Tutor mailing list