import random
array = []
for _ in range(3):
array.append([int(random.randint(0,9)) for _ in range(4)])
for row in array:
print(f'{" ".join(str(num) for num in row)}')
import random
array = []
for _ in range(3):
array.append([int(random.randint(0,9)) for _ in range(4)])
for row in array:
print(f'{" ".join(str(num) for num in row)}')