Doing this for a school assignment, I want to ask the user for a list of inputs, outputs, then a value that the code will use to predict an output. My problem is I cannot find a way to split the inputs, ".split()" doesn't seem to work as it did in previous projects. Also any other suggestions on how I would improve the code?
Thank you!
input = np.array([input('Enter inputs: ')]).reshape(-1,1)
split_input = input.split()
output = np.array([input('Enter outputs: ')]).reshape(-1,1)
split_output = output.split()
When I run this it says
'numpy.ndarray' object has no attribute 'split' Line 7
Is there any other way I can split up the list or array?