What is the output of the following code ?
print(6 << 3 - 2)
"-" has higher precedence than "<<" . So this expression (6 << (3 - 2)) will be evaluated as (6 << 1) which results in 12
(6 << (3 - 2))
(6 << 1)
Comment here: