1The == operator compares the values of both the operands and checks for value equality. Whereas is operator checks whether both the operands refer to the same object or not. ... Hence list1 and list2 refer to different objects. We can check it with id() function in python which returns the “identity” of an object.
1# >> and << are bitwise operators. They shift the bits of an integer right and left
2# 7 = 0111
3print(7 >> 1)
4# 3 (0011)
5
6print(7 << 1)
7# 14 (1110)
1a = 1
2b = 2
3
4if a != b:
5 print("Dunno")
6
7if a <> b:
8 print("Dunno")
9
10
11above mentioned code are same As described in the documentation,
12they are the same. <> is deprecated and was removed in Python 3,
13so you should use !=
14
15https://docs.python.org/2/reference/expressions.html#not-in