Variable scope in nested functions

Prahallad Achar acharbly at gmail.com
Mon Jan 29 21:48:35 EST 2018


def a() :
    Print (value)
    def b() :
         Value = 100
    Return b

Its a nested function.  How can I use variable value just one function
above the parent function.
This is possible in tcl.. Is it possible in Python too?



More information about the Python-list mailing list