HackerRank- Python Inner and Outer



Compute their inner and outer product of two arrays.



  1. import numpy as np
  2. A = np.array(input().split(), int)
  3. B = np.array(input().split(), int)
  4. print(np.inner(A,B), np.outer(A,B), sep='\n')

download android app