Inner and Outer

  • + 0 comments

    import numpy as np a = np.array(list(map(int, input().split()))) b = np.array(list(map(int, input().split()))) print(np.inner(a,b)) print(np.outer(a,b))