Inner and Outer

  • + 0 comments
    import numpy as np 
    
    input_array_A = np.array(list(map(int, input().split())))
    input_array_B = np.array(list(map(int, input().split())))
    
    print(np.inner(input_array_A,input_array_B))
    print(np.outer(input_array_A,input_array_B))