7 ms·
Why not? It helps limiting variable scope. The advantage of a global variable without the disadvantages.
by z3t4 4y ago
Why not? It helps limiting variable scope. The advantage of a global variable without the disadvantages.
- cuteboy19 4y agoWhy not- possible to get an importerror if you make a mistake in the import statement. This kind of error should happen as early as possible and you won't expect it to happen during a random function call