arrays
-
Practice>Python>Numpy>Arrayshackerrank.com 2019. 3. 26. 12:38
hackerrank.comArraysProblem link : https://www.hackerrank.com/challenges/np-arrays/problemDifficulty : Easy Tipdouble colon :: is keyyou guys know regarding single colon : It's time to understand the usage of ::key is [::-1] to reverse numpy array Solution import numpy def arrays(arr): return numpy.array(arr, float)[::-1] arr = input().strip().split(' ') result = arrays(arr) print(result)