def rows_have_unique_numbers(matrix):
for row in matrix:
seen = set()
for num in row:
if num in seen:
return False
seen.add(num)
return True
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 7] # This row has a repetition
]
print(rows_have_unique_numbers(matrix))
'''
run:
False
'''