Capgemini interview question

Scope and class in python