What I usally do when letting the user enter a list is
myList = []
for i in range(n): #n is a initalized number
myList.append(int(input()))
This way when the user enters they have to enter 1 item at a time, and need to press enter before they can input the next time. Instead, I want the user to enter something like
1 2 3 4 5
All the input for the list will be on the same line, and the list will store each number as a item in the list, which will make the list like
[1, 2, 3, 4, 5]
is there a way to do that in Python?