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.

hackerrank arrays problem solution in python programming language

Problem solution in Python 3 programming language.

import numpy

print(numpy.array(input().split(),float)[::-1])

Second solution

import numpy

print(numpy.flipud(numpy.array(input().split(),float)))

Problem solution in Python 2 programming language.

import numpy

print numpy.flipud(numpy.array(raw_input().split(),float))

Second solution

import numpy

print numpy.array(raw_input().split(),float)[::-1]