Create NumPy array with pattern II
Create a NumPy array with the given shape. The first column should contain only 0s, the second only 1s, the third only 2s, an so on... Hint: You could use a for-loop and the function
np.full()
Premium
Python
Setting up Python environment...
Output