circuitpython/tests/basics/int-big-lshift.py
2014-03-12 15:39:51 +00:00

5 lines
180 B
Python

# tests transition from small to large int representation by left-shift operation
for i in range(1, 17):
for shift in range(70):
print(i, '<<', shift, '=', i << shift)