Function Scope
Scope refers to the visibility and accessibility of variables, and functions in a particular part of your code. In Python, variables and other identifiers have different levels of scope, which determine where they can be accessed and used.
Variables defined in the global scope are accessible from anywhere in the code, including inside functions (and classes). They are typically declared outside of any function.

Variables defined inside a function have local scope. They are only accessible within that function and nowhere else.

Once the function execution completes, the variables are destroyed, and their values are no longer accessible. Any result will need to be returned.