# Loop over fixed length blocks using Walrus Operator while (block := f.read(256)) != '': process(block)