What is a closure in python?



What is a closure in python?..

Answer / Gyaneshchandra Sharma

A closure in Python is a function that has access to variables in its parent function's scope, even when the parent function has returned. This can be achieved by nested functions within another function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How can you prevent abnormal termination of a python program?

1 Answers  


Describe how to use Sessions for Web python.

1 Answers  


What is a namespace in python?

1 Answers  


Is r similar to python?

1 Answers  


How do I use strftime in python?

1 Answers  


What is frozen set in python?

1 Answers  


Is print a function in python 3?

1 Answers  


How do I exit python?

1 Answers  


How is python used in the real world?

1 Answers  


Name some of the features of python?

1 Answers  


Is python good for web development?

1 Answers  


What is python identifiers?

1 Answers  


Categories