Explain the concept of closures in Python.



Explain the concept of closures in Python...

Answer / 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

More Python Interview Questions

Which is the package fastest form of python?

0 Answers  


Explain how to make Forms in python.

1 Answers  


Is python statically typed or dynamically typed?

0 Answers  


Explain about control flow statements?

0 Answers  


Is there a double type in python?

0 Answers  






What do you think is the output of the following code fragment?

0 Answers  


What is PEP8?

0 Answers  


Give an example to capital first letter of a string?

0 Answers  


What is the best code you can write to swap two numbers?

0 Answers  


What is the use of assertions in python?

0 Answers  


What apps are written in python?

0 Answers  


How will you convert an integer to a unicode character in python?

0 Answers  


Categories