Tech Mahindra interview question

Q: Question from python programming like functions, comments, list, tuple and some logical questions.