What is Local and Global Variable In python

    0
    21

    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.

    Local Variables:-

    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