Question: what is the difference between local and global variables in python?
Answer: What is the difference between global and local variables in Python? A global variable is a variable that is accessible globally. A local variable is one that is only accessible to the current scope, such as temporary variables used in a single function definition.