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

To use the NumPy module, we need to import it using:

import numpy

Arrays  

A NumPy array is a grid of values. They are similar to lists, except that every element of an array must be the same type. 

import numpy

a = numpy.array([1,2,3,4,5])
print a[1]          #2

b = numpy.array([1,2,3,4,5],float)
print b[1]          #2.0

In the above example, numpy.array() is used to convert a list into a NumPy array. The second argument (float) can be used to set the type of array elements.

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
1 2 3 4 -8 -10

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

Difficulty: EASY

Solutions:
import numpy
num_array = input().split(' ')
numpy_num_array = numpy.array(num_array, float)
print(numpy.fliplr([numpy_num_array])[0])


import numpy
x = input().split()
l = []
for i in range(len(x), 0, -1):
	l.append(float(x[i - 1]))
print(numpy.array(l, float))


import numpy
x = numpy.array([float(x) for x in input().split()], float)
print(x[::-1])


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


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


import numpy
a = numpy.array([float(x) for x in input().split(' ')])
print(a[::-1])


import numpy
inp = input().strip().split()
arr = numpy.array(inp, float)
arr2 = []
for i in range(len(arr) - 1, -1, -1):
	arr2.append(arr[i])
arrOut = numpy.array(arr2, float)
print(arrOut)


import numpy
ar = list(map(float, input().split()))
np_ar = numpy.array(ar, float)
print(np_ar[::-1])


import numpy
a = input().split()
a.reverse()
b = numpy.array(a, float)
print(b)


import numpy as np
nums = [float(i) for i in input().split()]
nums.reverse()
nums = np.array(nums)
print(nums)


import numpy
b = input().strip().split()
b.reverse()
c = []
for i in b:
	c.append(i)
a = numpy.array(c, float)
print(a)


import numpy
a = input().strip().split()
a.reverse()
print(numpy.array(a, float))


import numpy
l = input().split()
l = [l[len(l) - l.index(x) - 1] for x in l]
a = numpy.array(l, float)
print(a)


import numpy
nums = [float(num) for num in input().split()]
result = numpy.array(nums, dtype=float)
print(result[::-1])


import numpy
a = numpy.array(list(map(float, input().split()))[::-1], float)
print(a)


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


import numpy
a = list(map(float, input().split()))
a.reverse()
print(numpy.array(a))


import numpy as np
print(np.array([float(e) for e in input().split()])[::-1])


import numpy
O = list(map(float, input().split()))
O.reverse()
A = numpy.array(O, float)
print(A)


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


import numpy
arin = input().split(' ')
a = numpy.array(arin, float)
a = a[::-1]
print(a)


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


import numpy
data = [i for i in input().strip().split()]
a = numpy.array(data, float)
print(a[::-1])


import numpy
l = input().split()
l.reverse()
a = numpy.array(l, float)
print(a)


import numpy
numbers = [float(x) for x in input().split()]
print(numpy.array(numbers, float)[::-1])


import numpy as np
res = input()
print(np.array(list(map(float, res.split(' '))), float)[::-1])


import numpy
l = list(map(float, input().split()))
l = numpy.array(l[::-1], float)
print(l)


import numpy as np
import sys
A = np.array(sys.stdin.readline().split(), float)
print(A[::-1])


import numpy
a = numpy.array(list(map(float, input().strip().split())), float)
print(a[::-1])


import numpy
print(numpy.array(list(reversed([float(i) for i in input().split()])), float))


import numpy
a = numpy.array([float(x) for x in input().split()], float)
reversed_arr = numpy.flipud(a)
print(reversed_arr)


import numpy
s = list(map(float, input().split()))
a = numpy.array(s[::-1], float)
print(a)


import numpy
y = list(map(float, input().strip().split()))
y.reverse()
print(numpy.array(y))


import numpy
strings = input().split()
strings.reverse()
ints = map(lambda t: float(t), strings)
arr = numpy.array(list(ints))
print(arr)


import numpy
data = input().split(' ')
array = numpy.array(data, dtype='float')[::-1]
print(array)


import numpy as np
ar = input().split()
ar = np.array(ar, float)
print(ar[::-1])


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


import numpy
a = input()
b = numpy.array([float(i) for i in a.split()])
print(b[::-1])


import numpy
print(numpy.array(list(reversed(list(map(float, input().split()))))))


import numpy as np

def main():
	print(np.array(list(map(float, input().split()))[::-1], float))
main()


import numpy as np
x = list(reversed([float(i) for i in input().split()]))
print(np.array(x, float))


import numpy
n = list(map(float, input().split()))
a = numpy.array([n], float)
m = []
for i in range(len(n), 0, -1):
	m.append(a[0][i - 1])
b = numpy.array(m)
print(b)


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


import numpy
a = list(map(float, input().split()))
a = a[::-1]
a = numpy.array(a)
print(a)


import numpy
input_data = input().split(' ')
reversed_array = numpy.fliplr(numpy.array([input_data], float))[0]
print(reversed_array)


import numpy
a = numpy.array(list(map(float, input().strip().split())))
print(a[::-1])


import numpy
arr = input().strip().split(' ')
intArr = numpy.array(arr, float)
print(intArr[::-1])


import numpy
a = numpy.array(list(reversed([float(x) for x in input().split()])))
print(a)


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


import numpy
n = [i for i in input().split()]
n = numpy.array(list(reversed(n)), float)
print(n)


import numpy
my_arr = [float(char) for char in input().split()]
my_arr.reverse()
print(numpy.array(my_arr))


import numpy
L = list(map(float, input().split()))[::-1]
print(numpy.array(L, float))


import numpy
array = list(map(float, input().strip().split()))
array.reverse()
a = numpy.array(array)
print(a)


import numpy
import sys

def main():
	f = sys.stdin
	l = [float(i) for i in f.readline().split()]
	l.reverse()
	print(numpy.array(l, float))
main()


import numpy
a = input().split()
yo = numpy.array(a, dtype=float)
print(yo[::-1])


import numpy
a = input()
x = a.split()
print(numpy.array(x[::-1], float))


import numpy
a = input().split()
a.reverse()
print(numpy.array(a, float))


import numpy
a = numpy.array(list(map(float, input().split(' '))))
a = a[::-1]
print(a)


import numpy
data = input().split(' ')
print(numpy.array(data[::-1], float))


import numpy
print(numpy.array([float(x) for x in input().split()])[::-1])


import numpy
arr = numpy.array(list(map(float, input().split())), float)
print(numpy.flipud(arr))


import numpy as np
print(np.array(str(input()).split(' ')[::-1], float))


import numpy as np
inputs = input()
input_arr = inputs.split()
input_arr = list(map(float, input_arr))
a = np.array(input_arr, float)
print(a[::-1])


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


import numpy
A = [float(i) for i in input().strip().split()]
A.reverse()
print(numpy.array(A, float))


import numpy
a = list(map(float, input().split()))
print(numpy.array(a[::-1], float))


import numpy
tmp = [float(x) for x in input().strip().split()]
tmp.reverse()
print(numpy.array(tmp, float))


import numpy
inputList = [x for x in input().split()]
numpyArr = numpy.array([x for x in reversed(inputList)], float)
print(numpyArr)


import numpy
a = numpy.array(list(reversed(list(map(float, input().split())))))
print(a)


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


import numpy as np
numberList = input().split()
print(np.array(numberList, float)[::-1])


import numpy
a = numpy.array([float(x) for x in input().split()])
print(a[::-1])


import numpy
print(numpy.array(list(reversed(input().split())), float))


import numpy
j = list(map(float, input().split()))[::-1]
print(numpy.array(j, float))


import numpy
a = [x for x in input().strip().split(' ')]
a.reverse()
a = numpy.array(a, float)
print(a)


import numpy as np
a = [float(i) for i in input().split()]
b = np.array(a, dtype='float')
print(b[::-1])


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


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


import numpy
listy = list(map(float, input().split(' ')))
final = []
for i in range(len(listy), 0, -1):
	final.append(listy[i - 1])
final = numpy.array(final, float)
print(final)


import numpy
print(numpy.array(list(map(float, reversed(input().split()))), float))


import numpy as np
print(np.array(list(map(float, input().strip().split(' '))))[::-1])


import numpy as np
print(np.array([x for x in input().split()][::-1], float))


import numpy
numbers = list(map(float, input().split()))
numbers.reverse()
print(numpy.array(numbers, float))


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


import numpy
a = numpy.array(list(map(float, input().split())))
print(a[::-1])


import numpy
a = input().split()
arr = numpy.array(a, float)
print(arr[::-1])


import numpy

def reverse(input):
	arr = numpy.array(input.split(' '), float)
	return arr[::-1]
print(reverse(input()))