Barclays Interview Question

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