a = list(map(int,input("\nEnter the numbers : ").strip().split()))
for i in range(0, n): ele = int(input()) lst.append(ele)
x=[] for i in range(int(input("How many elements are in list : "))): x.append(int(input())) print(x)
# creating an empty list lst = [] # number of elemetns as input n = int(input("Enter number of elements : ")) # iterating till the range for i in range(0, n): ele = int(input()) lst.append(ele) # adding the element print(lst)