a = [] s = int(input("Enter the size of array: ")) for i in range(0, s): ele = int(input("Enter the elements of the array: ")) a.append(ele) print(a)