Skip to content

Latest commit

 

History

History

arrays

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Arrays

https://www.hackerrank.com/challenges/np-arrays

Problem

The NumPy (Numeric Python) package helps us manipulate large arrays and matrices of numeric data.

Task

You are given a space separated list of numbers.
Your task is to print a reversed NumPy array with the element type float.

Input Format

A single line of input containing space separated numbers.

Output Format

Print the reverse NumPy array with type float.

Sample Input 0

1 2 3 4 -8 -10

Sample Output 0

[-10.  -8.   4.   3.   2.   1.]

My Solution