micropython/tests/basics/int-big-lshift.py

5 lines
180 B
Python
Raw Normal View History

# 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)