Arrays

Sort by

recency

|

361 Discussions

|

  • + 0 comments
    import numpy def arrays(arr): n=numpy.array(list(reversed(arr)),float) return n arr = input().strip().split(' ') result = arrays(arr) print(result) 
  • + 0 comments

    For Python3 Platform

    import numpy def arrays(arr): return numpy.array(arr[::-1], float) arr = input().strip().split(' ') result = arrays(arr) print(result) 
  • + 0 comments
    import numpy def arrays(arr): # complete this function # use numpy.array return numpy.array(arr[::-1],float) arr = input().strip().split(' ') result = arrays(arr) print(result) 
  • + 0 comments

    def arrays(arr): arr.reverse() return(numpy.array(arr,float))

  • + 0 comments

    My compact solution…

    def arrays(arr): return numpy.array(arr[::-1], float)