|
|
|
|
|
by trufas
1672 days ago
|
|
The tradeoff here is that you don't have to explicitly declare new variables (something like `var` in js). Most people who work with python on a daily basis know you need the `global` keyword to avoid shadowing. I think it was a good choice in the sense that it discourages mutable global state and makes the most common case more concise. |
|