Arrays

Sort by

recency

|

332 Discussions

|

  • + 0 comments

    import numpy

    def arrays(arr): a = numpy.array(arr, dtype=float)
    return numpy.flip(a) arr = input().strip().split(' ') result = arrays(arr) print(result)

  • + 0 comments

    def arrays(arr):

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