Create NumPy array with pattern I
Create a NumPy array with the given shape. The first row should contain only zeros, and the second only ones. Include the function
np.zeros()
in your solution.Premium
Python
Setting up Python environment...
Output