Computer Science
Variables defined inside functions can have global scope.
Python Functions
1 Like
Answer
False
Reason — Variables defined inside functions have only local scope. This means that they are only accessible within the function in which they are defined.
Answered By
3 Likes
Related Questions
A Python function may return multiple values.
A void function also returns a value i.e., None to its caller.
A local variable having the same name as that of a global variable, hides the global variable in its function.
Assertion. A function is a subprogram.
Reason. A function exists within a program and works within it when called.