input array of string in python

x = list(map(str, input("Enter the values with spaces between them: ").split()))

Here is what the above code is Doing:
1. We are taking the input from the user and storing it in a variable called x.
2. We are using the map() function to convert the input into a list.
3. We are using the split() function to split the input into a list.
4. We are using the str() function to convert the input into a string.