Skip to content

sagard21/062-list-to-ndarray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Write a Python program to convert a list of numeric value into a one-dimensional NumPy array.

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])
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%