While Loop And For Loop Difference In Python