Original List: [12.23, 13.32, 100, 36.32]
One-dimensional numpy array: [ 12.23 13.32 100. 36.32]
Notes
- Define a function to accept a list as a parameter.
- Return a NumpyArray
Instructions:
-
Program should be written in file build.py
-
Function name should be solution.
-
Input
Type: List Value: [12.23, 13.32, 100, 36.32]
-
Expected Output
Type: numpy.ndarray Value: array([12.23, 13.32, 100., 36.32])