What are local variables and global variables in Python?
sandhyamini Answered question December 16, 2023
Unlike global variables, which can be used everywhere in the programme, local variables can only be accessible within the function or module in which they are defined. Global variables in Python can be defined with the global keyword, and they can also be modified in a local context.
Vishalini.R Answered question September 7, 2023
