Skip to content

Opening book details…

About this document

Understanding Global Variables in Functions by Geeta Bhatt is a document available to read on EtoBox.

A function can access global variables by default but must use the global keyword to modify them. A void function performs an action without returning a value, internally returning None. Formal parameters are defined in the function header while actual parameters are passed in the function call. Example 1 shows a global variable changing within a function while Example 2 demonstrates formal and actual parameters.

Author
Geeta Bhatt
Language
EN