Infosys interview question

swap program in python language