DXC Technology interview question

Python basic questions, and oops principles