In python local variables are those which are defined inside a function and its scope is limited to that function only whereas global variables are those which are not defined inside…
what are the rules for a local and global variable in python
1 Article
1