func returns global

Global keyword used To modify variables Within functions’ scope

python shell for func returns global

In Python, global
Keyword lets functions access
And modify state

So when you’re working with functions in Python, you can use the “global” keyword to modify a global variable from within a function. This means that if you have a variable defined outside of a function, you can use the “global” keyword inside the function to modify that variable. It’s important to note that using global variables can make your code harder to understand and maintain, so it’s generally a good idea to use them sparingly. Also, when you use the “global” keyword inside a function, you need to make sure that the variable you’re referencing actually exists in the global scope, otherwise you’ll get an error.