Right choice is (d) Declare the variable as global
To elaborate: Any global variable, in the primary function, if required to be accessed by a nested function- the variable needs to be declared with the global keyword within the function which requires access to it. This allows sharing the variable amongst the primary and other functions. If the variable is declared without using the global keyword, the variable might bring an error to the function.