Please Login in order to post a comment
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
import numpy
def arrays(arr): arr = numpy.array(arr[::-1],float)
return arr
arr = input().strip().split(' ') result = arrays(arr) print(result)
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
import numpy
def arrays(arr): arr = numpy.array(arr[::-1],float)
arr = input().strip().split(' ') result = arrays(arr) print(result)