You are viewing a single comment's thread. Return to all comments →
import numpy shape = tuple(map(int, input().split())) print(numpy.zeros(shape, dtype=int)) print(numpy.ones(shape, dtype=int))
It'll work for pypy3 as well.
Thanks for the info, but I know that. I just mentioned the platform I worked in just as a formality
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →
For Python3 Platform
It'll work for pypy3 as well.
Thanks for the info, but I know that. I just mentioned the platform I worked in just as a formality