learn_closure

Run Settings
LanguagePython
Language Version
Run Command
#AST #python closure #react--redux def out_func(): x=10 #x is inner_func's private varible (closure) y=1 #y is not closere only is out_func's private vardible def inner_func(): print("this is out value :", x) return(inner_func) a = out_func() a() def out_func(): tax=0.10 def inner_func(sales): print("this is out value :", sales*tax) return(inner_func) a = out_func() a(1000) a(100)
Editor Settings
Theme
Key bindings
Full width
Lines