HCLTech interview question

Basic and advanced Python related questions.