Question d’entretien chez Barclays

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