Taking Input In Python Using For Loop