1x = list(map(int, input("Enter the values with spaces between them: ").split()))
2# you can put the data type that you want in the "int" place
1x=[] for i in range(int(input("How many elements are in list : "))): x.append(int(input())) print(x)
1x=[int(input()) for i in range(int(input("How many elements are in list : ")))] print(x)