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.
# method 1defarrays(arr):a=numpy.array(arr,float)returna[::-1]# method 2 using function reverse in listdefarrays(arr):arr.reverse()a=numpy.array(arr,float)returna# method 3 using function flip in numpydefarrays(arr):a=numpy.array(arr,float)returnnumpy.flip(a)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays
You are viewing a single comment's thread. Return to all comments →