Arrays

Sort by

recency

|

346 Discussions

|

  • + 0 comments

    import numpy

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

  • + 0 comments

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

    Check this out :)

  • + 0 comments
    • import numpy
      • def arrays(arr):
    • jinx = list(map(float,list(reversed(arr))))
    • isha = numpy.array(jinx,float)
    • return isha
      • arr = input().strip().split(' ')
    • result = arrays(arr)
    • print(result)
  • + 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)