You are viewing a single comment's thread. Return to all comments →
import numpy shape = [*map(int, input().split())] print(numpy.zeros(shape, dtype=int)) print(numpy.ones(shape, dtype=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 →
Using dtype=numpy.int is not valid anymore in the current stable release of numpy module. Use dtype=int