Inner and Outer
-
Practice>Python>Numpy>Inner and Outerhackerrank.com 2019. 3. 13. 13:06
hackerrank.comInner and OuterProblem link : https://www.hackerrank.com/challenges/np-inner-and-outer/problemDifficulty : Easy TipLet's learn how to use numpy.inner() and numpy.outer() Solution import numpy as np A = np.array(input().split(' '), int) B = np.array(input().split(' '), int) print(np.inner(A, B)) print(np.outer(A, B))