Python, Python Programming, Coding, Web Developer, Code.
Global Namespace contains only one name — ‘x’, which has a value of 10. When the function is called, the value of ‘x’ is printed to the console. Because ‘x’ is defined in the Global Namespace, it can be accessed by the function. Any changes made to ‘x’ within the function will also affect the value