Infosys Interview Question

some basic question of python