Capgemini Engineering interview question

Questions related to python and oops