Олимпиадный тренинг

Задача 37533. Two-dimensional NumPy arrays. Referencing elements


Задача

Темы: NumPy
The numbers n and m are given as input. Output an array of size n by m, in which the first line (the line with zero index) contains numbers from 0  up to m-1 and the remaining numbers are 0. The type of array elements must be np.int8.
 

 

Examples
# Input Output
1 3
4
[[0 1 2 3]
 [0 0 0 0]
 [0 0 0 0]]

Запрещенные операторы:if;for;while;do