Question: what is local and global variable in python?
Answer: Global and Local Variables in Python? PythonServer Side ProgrammingProgramming. There are two types of variables: global variables and local variables. The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.