You are viewing a single comment's thread. Return to all comments →
import numpy as np n = tuple(map(int, input().split()))
print(np.zeros(n).astype(int)) print(np.ones(n).astype(int))
Seems like cookies are disabled on this browser, please enable them to open this website
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →
import numpy as np n = tuple(map(int, input().split()))
print(np.zeros(n).astype(int)) print(np.ones(n).astype(int))