What are local variables and global variables in Python?
sandhyamini Answered question December 16, 2023
A global variable is one that is “declared” outside of the functions in a program and can, therefore, be accessed by any of the functions. A local variable is declared inside a specific function and can only be accessed by the function in which it is declared. In the example, the last line says “console.
sandhyamini Answered question December 16, 2023
