Arrays

Sort by

recency

|

343 Discussions

|

  • + 0 comments

    For Python3 Platform

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

    import numpy def arrays(arr): return numpy.array(arr[::-1],dtype=numpy.float64) #return numpy.array(arr[::-1], dtype=numpy.float64) arr = input().strip().split(' ') result = arrays(arr) print(result)

  • + 0 comments

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

    arr = input().strip().split(' ') result = arrays(arr) print(result

    arr = input().strip().split(' ') Why there are codes in split()??

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

    def arrays(arr): # complete this function # use numpy.array return numpy.array(arr).astype(float)[::-1]