Please Login in order to post a comment
import numpy def arrays(arr): reversed_array = arr[::-1] return numpy.array(reversed_array, float) arr = input().strip().split(' ') result = arrays(arr) print(result)
def arrays(arr): # complete this function # use numpy.array arr = numpy.array(arr, float) return arr[::-1]
The easiest way to solve this problem code = "import numpy
def arrays(arr): # complete this function # use numpy.array array = numpy.array(arr,float) reverse_array = array[::-1] return reverse_array arr = input().strip().split(' ') result = arrays(arr) print(result)"
def arrays(arr): array = numpy.array(arr,float)[::-1] return array
BY GK import numpy def arrays(arr):
converType = numpy.array(arr,dtype="float") return numpy.flip(converType)
arr = input().strip().split(' ') result = arrays(arr) print(result) --------> flip is used to reverse the number
Seems like cookies are disabled on this browser, please enable them to open this website
The easiest way to solve this problem code = "import numpy
def arrays(arr): # complete this function # use numpy.array array = numpy.array(arr,float) reverse_array = array[::-1] return reverse_array arr = input().strip().split(' ') result = arrays(arr) print(result)"
def arrays(arr): array = numpy.array(arr,float)[::-1] return array
BY GK import numpy def arrays(arr):
arr = input().strip().split(' ') result = arrays(arr) print(result) --------> flip is used to reverse the number