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')


Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube