We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
importnumpydefarrays(arr):# complete this function# use numpy.arrayreturnnumpy.array(arr[::-1],float)arr=input().strip().split(' ')result=arrays(arr)print(result)
For Python3 Platform
def arrays(arr): arr.reverse() return(numpy.array(arr,float))
My compact solution…