iNeuron interview question

Loop based python questions using for or while