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

What is a class definition in python?

799


Mention what are the rules for local and global variables in Python?

918


What is a static method in python?

930


How to prevent blocking in content() method of socket?

856


What is the function of a negative index?

911


How do I get numpy in python?

837


Is map faster than for loop python?

859


How to share global variables across modules?

854


What are the nameless functions in python?

799


Where is pip installing packages?

866


What is different between class and object?

910


Do you know what does the keyword do in python?

795


What is lambda used for in python?

882


Is python is a case sensitive?

808


What does pep8 refer to?

777