get user input for an array in python programme code example
Example: pythin taking input for array
x = list(map(int, input("Enter the values with spaces between them: ").split()))
# you can put the data type that you want in the "int" place
x = list(map(int, input("Enter the values with spaces between them: ").split()))
# you can put the data type that you want in the "int" place