Arrays

Sort by

recency

|

341 Discussions

|

  • + 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]

  • + 0 comments

    import numpy

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

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

  • + 0 comments

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