There are 2 types of variables Local and Global Variable In python
Global Variables:- Variables declared outside a function or in a global space are called global variables. This variable can be accessed by any Function in the program.
Any variable declared inside a function is known as a local variable. This variable is present in the local and not in the global space