HackerRank- Python Zeros and Ones
Given the shape of the array in the form of space-separated integers, each integer representing the size of different dimensions, your task is to print an array of the given shape and integer type using the tools numpy.zeros and numpy.ones
- import numpy as np
- shape= tuple(map(int,input().split()))
- print(np.zeros(shape,int), np.ones(shape,int), sep='\n')