@flipsideza same name - that's not a Rust-ism.
I first came across it in C; it's probably older than that.
Python has the `global` keyword to use a global scope var in a local function vs "shadowing" it with a local of the same name (check details in pydoc)
Using type hinting in Python can help avoid problems where a variable is reused for a different purpose and type, but it doesn't have fully immutable variables, unlike other langs
#shadowing #variables #python #typehints #programmingterms