New course! Every coder should learn Generative AI!
Try a free lesson0
x=5 x=x<<1 x=?
2 Answers
+ 1
Binary left shift (<<)
Binary value for 5 is 0b101 which is left shifted by 1 bit and becomes 0b1010 which is 10
in 0b101 ,0b is representation of binary number in python
0
Thanks