Dot and Cross

  • + 0 comments

    from numpy import array,dot

    a = int(input())

    arr1, arr2=array([[list(map(int,input().split())) for _ in range(a)] for _ in range(2)])

    print(dot(arr1,arr2))

    easy to understand i think x)