how to take multiple inputs in python using for loop