Q. When is global statement used? Why is its use not recommended?


Answer =

Use:-

The global statement is a declaration which hold for the entire current code block. It means that the listed identifiers are part of the global namespace or global environment.

• The global statement cannot be reverted in a program run, so it should be avoid.

16 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post