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
What is overriding in python?
Does the functions help() and dir() list the names of all the built_in functions and variables? If no, how would you list them?
What is the difference between interpreted and compiled languages?
What is == in python?
How do you write a function in python 3?
How do you use super in python?
What is the concatenation?
Tell me what is docstring in python?
What is the namespace in python?
Write a program in python to execute the bubble sort algorithm.
How is python used in business?
What is filter python?
What are string literals in python?
What is the key difference between a list and the tuple?
Where python is mostly used?