Please Login in order to post a comment
My compact solution…
def arrays(arr): return numpy.array(arr[::-1], float)
import numpy def arrays(arr): reversed_array = arr[::-1] return numpy.array(reversed_array, float) arr = input().strip().split(' ') result = arrays(arr) print(result)
import numpy def arrays(arr): sol_arr=numpy.array(arr,float) return sol_arr[::-1] 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]
Seems like cookies are disabled on this browser, please enable them to open this website
My compact solution…
import numpy def arrays(arr): sol_arr=numpy.array(arr,float) return sol_arr[::-1] arr = input().strip().split(' ') result = arrays(arr) print(result)