list input using for loop in python