Infosys interview question

Basic programming Questions using python