>> and << operators?

Medardo Rodriguez (Merchise Group) med.swl at gmail.com
Sat Aug 23 00:43:22 CEST 2008


On Fri, Aug 22, 2008 at 6:30 PM, defn noob <circularfunc at yahoo.se> wrote:
> What does >> and << do?

Normally they are bitwise operators:
>> Shifts bits right
<< Shifts bits left

print 1 << 3
8

because 8 = 00001000 in binary

Regards



More information about the Python-list mailing list