The Secret Life of Python: The Shadow Name
SMRTR summary
Variable shadowing occurs when naming a variable 'list' overwrites Python's built-in list() function, causing "not callable" errors. Python's LEGB scope rules find the variable first, blocking access to the built-in function.
SMRTR provides this summary for quick context. The original article belongs to Dev.to.
Read the original article