Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain the concept of closures in Python.

Answer Posted / nashiinformaticssolutions

A closure occurs when a function is defined inside another function and references variables from the outer function's scope. It allows the inner function to retain access to variables from the outer function even after the outer function has finished executing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is python supports multithreading?

880


Is python 3gl or 4gl?

901


What is n in python?

831


Describe about the libraries of python?

894


Should a function always return a value python?

889


What is the difference between range & xrange? Explain?

869


Why python is popular nowadays?

802


How do you use super in python?

1043


What is the best tutorial for python?

997


Explain the use of try: except raise, and finally?

791


State and explain about strings?

915


What is raw_input?

814


Is indentation required in python?

854


Which is better python or r?

808


What happens when you execute the statement mango=banana in python?

913