a_lst = [] while True: inp = input() if inp == "": break a_lst.append(inp)
I used this code to input unknown number of inpu