I was just trying out a simple if statement and it doesn't work as expected. Is there an error on my part or is there something about if statement's functioning that I'm ignorant of?
the code is:
i = 50
n = 6
if i >> n:
print("I is greater")
elif i << n:
print("I is lesser")
elif i == n:
print("I and N are same")
else:
print("no result")
the output is "I is lesser" even if i put a greater or equal value. Please help me understand how this works.