#The walrus operator := assigns values to variables as part of a larger expression.
#In this example, the assignment expression helps avoid calling len() twice:
if (n := len(a)) > 10:
print(f"List is too long ({n} elements, expected <= 10)")
def func(x): -> int
return x
# it annotates the return type of the function.
# Doesn't force the return type.
a = 1
b = 2
if a != b:
print("Dunno")
if a <> b:
print("Dunno")
above mentioned code are same As described in the documentation,
they are the same. <> is deprecated and was removed in Python 3,
so you should use !=
https://docs.python.org/2/reference/expressions.html#not-in