Introduction
Global scope means a variable can be used anywhere in the program. It helps share information across different parts of the code.
When you want to use the same data in many functions without passing it around.
When you have a setting or value that should stay the same everywhere.
When you want to keep track of a value that changes but is needed in multiple places.