5 ms·
that's not how the walrus operator works though. if x := 3: print("x is now: ", x) print("x isn't scoped to the if:",x)
by archgoon 7y ago
that's not how the walrus operator works though.
if x := 3:
print("x is now: ", x)
print("x isn't scoped to the if:",x)