Python‎ > ‎operator‎ > ‎

operator.rshift()


Definition
Same as a >> b.

Syntax
operator.rshift(a,b)

Parameters
a,b=number

Examples
The return are:
 import operator
a=44
b=31
i=operator.rshift(a,b)
print(i)
>>>
0
>>>

import operator
a=44
b=31
i=operator.__rshift__(a,b)
print(i)
>>>
0
>>>

a=44
b=31
i=a>>b
print(i)
>>>
0
>>>

Comments