Barclays interview question

What is a closure in python. What are the linear regression assumptions.