matrix = ... # тут должна быть матрица
value = int(input('Введите значение: '))
a = []
b = []
c = []
for row in matrix:
for element in row:
if element > value:
a.append(element)
elif element < value:
b.append(element)
else:
c.append(element)
print(a)
print(b)
print(c)
matrix = ... # тут должна быть матрица
value = int(input('Введите значение: '))
a = []
b = []
c = []
for row in matrix:
for element in row:
if element > value:
a.append(element)
elif element < value:
b.append(element)
else:
c.append(element)
print(a)
print(b)
print(c)