Hacker News new | ask | show | jobs
by siekmanj 2436 days ago
Python doesn’t really have scope in that way. Variables declared inside an if statement can be accessed outside of the if statement.
1 comments

Control-flow blocks aren't scoped in most popular programming languages.
name one except python