I have two arrays that need to be combined into a single array by adding the together the values from each array.
a = [1, 2, 3, 4, 5]
b = [1, 2, 3, 4, 5]
x = np.sum(a, b)
the result I want is:
x = [2, 4, 6, 8, 10]
then to be able to calculate the average of each value to get results:
x = [1, 2, 3, 4, 5]
When I run that, it returns the error
TypeError: 'list' object cannot be interpreted as an integer