You are viewing a single comment's thread. Return to all comments →
import numpy as np
n = input()
l1 = list(map(int,n.split(' ')))
arr = np.zeros((l1),dtype=int) print(arr) arr = np.ones((l1),dtype=int) print(arr)
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 = input()
l1 = list(map(int,n.split(' ')))
arr = np.zeros((l1),dtype=int) print(arr) arr = np.ones((l1),dtype=int) print(arr)