Python 3.10: Why does changing a global variable inside a nested function not affect the outer scope?
👀 Views: 3
💬 Answers: 1
📅 Created: 2025-05-31
python scope global-variables
I'm working on a script in Python 3.10 where I have a nested function that modifies a global variable. However, I'm struggling to see the changes reflected in t...