3 ms·
> At the same time, it's perhaps not as easy to write quick scripts if you don't know OOP (example: having to use the global keyword in helper function Your ex
by u801e 10y ago
> At the same time, it's perhaps not as easy to write quick scripts if you don't know OOP (example: having to use the global keyword in helper function
Your example has nothing to do with OOP. It's simply how python handles variable scope outside of a class.