L&T Technology Services interview question

Basic to intermediate python questions