Shifting is applied only to integer
values and mustn’t use float values.
Shifting a value one bit to the left
thus corresponds to multiplying it by two. Shifting one bit to the right is
like dividing by two.
Shift operators in Python are a pair
of diagraphs << and >>
The left argument of these operators
is an integer value whose bits are shifted. The right argument determines the
size of the shift.
Given below the updated priority table.
Given below some of the examples.
No comments:
Post a Comment