You are viewing a single comment's thread. Return to all comments →
import numpy as np methods = ['add', 'subtract', 'multiply', 'floor_divide', 'mod', 'power'] n, m = map(int, input().split()) a, b = [np.array([input().split() for _ in range(n)], int) for _ in range(2)] [print(getattr(np, cmd)(a, b)) for cmd in methods]
Seems like cookies are disabled on this browser, please enable them to open this website
Array Mathematics
You are viewing a single comment's thread. Return to all comments →