# Loop over fixed length blocks using Walrus Operator
while (block := f.read(256)) != '':
process(block)
#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)")
while (command := input("> ")) != "quit": print("You entered:", command)