14 lines
156 B
Python
14 lines
156 B
Python
|
number = 5
|
||
|
|
||
|
print(number)
|
||
|
print(bin(number))
|
||
|
|
||
|
number = number << 2
|
||
|
|
||
|
print(number)
|
||
|
print(bin(number))
|
||
|
|
||
|
number = number >> 2
|
||
|
|
||
|
print(number)
|
||
|
print(bin(number))
|