Write a Python program to access a function inside a function. I have used python 3.7 compiler for debugging purpose.
def test(a): def add(b): nonlocal a a += 1 return a+b return add func= test(10) print(func(10))
27 July 2019 2528 Written By: Rohit
© 2020 Tech Study. All rights reserved | Developed by Tech Study| Privacy Policy | Sitemap