matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
filtered_1 = [[x for x in row if x % 3 == 0] for row in matrix if sum(row) >= 10]
filtered_2 = [[x for x in row if (x % 3 == 0)] for row in matrix if sum(row) >= 10]
#filtered_3 = [[x for x in row (if x % 3 == 0)] for row in matrix if sum(row) >= 10]

print(filtered_1)
print(filtered_2)

d744696eb7fb98295920e04bfe2d4cd5002dd6c5
<mask token>

<mask token>
print(filtered_1)
print(filtered_2)

matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
filtered_1 = [[x for x in row if x % 3 == 0] for row in matrix if sum(row) >=
    10]
filtered_2 = [[x for x in row if x % 3 == 0] for row in matrix if sum(row) >=
    10]
print(filtered_1)
print(filtered_2)

matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
filtered_1 = [[x for x in row if x % 3 == 0] for row in matrix if sum(row) >= 10]
filtered_2 = [[x for x in row if (x % 3 == 0)] for row in matrix if sum(row) >= 10]
#filtered_3 = [[x for x in row (if x % 3 == 0)] for row in matrix if sum(row) >= 10]

print(filtered_1)
print(filtered_2)
