On string Operation of js and python

js Code:
var a = "123 console.log;
console.log (a > > 2); / / result: 30

python (3) Code:

a = "123"
print(a >> 2)        -sharp  TypeError: unsupported operand type(s) for >>: "str" and "int"

I would like to ask all the bosses:

how to translate the above js into python? Thank you!

Sep.22,2021

int (a) > > 2

Menu