from random import randint
m=int(input())
n=int(input())
a = [[randint(-10, 20) for j in range(n)] for i in range(m)]
print(a)
Объяснение:
from random import randint
m=int(input())
n=int(input())
a = [[randint(-10, 20) for j in range(n)] for i in range(m)]
print(a)
Объяснение: