x = [] n = input("enter length") for i in range(1, int(n)): k=input("enter value") x.append(k) # push your entered value print x