3 ms·
No, the visibility of `foo` is the same in both examples. Python’s `if` statements do not introduce a new scope.
by pansa2 5y ago
No, the visibility of `foo` is the same in both examples. Python’s `if` statements do not introduce a new scope.
3 ms·