Sum and Prod

  • + 0 comments

    Simple code from my side..

    import numpy
    
    a , b = map(int,input().split())
    
    arrayList = []
    for i in range(a):
        arrayList.append(list(map(int,input().split())))
    
    print(numpy.prod(numpy.sum(arrayList, axis = 0) ))