• + 0 comments
    import numpy as np
    arr1 = np.array([[1, 2, 3], [2, 3, 4], [1, 1, 1]])
    arr2 = np.array([[4, 5, 6], [7, 8, 9], [4, 5, 7]])
    arr3 = np.add(arr1, arr2)
    
    for i in np.nditer(arr3):
        print(i)
    

    Anything wrong here?