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

how do substitute a pattern in a string using re module

897


How do you make hello world in python?

938


When should you use the “break” in python?

955


Can I make games with python?

821


How many types of objects does python support?

954


What's the difference between python and anaconda programming?

973


How can you create a copy of an object in python?

987


How to convert sting to number and viceversa in python?

920


Tell me what is the difference between django, pyramid, and flask?

882


What does this mean: *args, **kwargs?

864


Is init in python a constructor?

896


What are the disadvantages of Python Recursion?

1076


What are python packages?

900


Is python as powerful as c++?

826


Can I learn python without knowing programming?

996