2 ms·
> the walrus operator limits the variable's scope to the conditional Nope! It's still function-scoped. In Python, walrus or no walrus, the body of a condition
by pansa2 1y ago
> the walrus operator limits the variable's scope to the conditional
Nope! It's still function-scoped.
In Python, walrus or no walrus, the body of a conditional is never a separate scope.