python 3.8 new operator code example
Example: python 3.8 new operator
if (n := len(a)) > 10:
print(f"List is too long ({n} elements, expected <= 10)")
if (n := len(a)) > 10:
print(f"List is too long ({n} elements, expected <= 10)")