3 ms·
Python doesn’t really have scope in that way. Variables declared inside an if statement can be accessed outside of the if statement.
by siekmanj 7y ago
Python doesn’t really have scope in that way. Variables declared inside an if statement can be accessed outside of the if statement.
- somebodythere 7y agoControl-flow blocks aren't scoped in most popular programming languages.
- mlevental 7y agoname one except python
- deleted 7y ago[deleted]