def print_specific_row_of_matrix(matrix, row):
cols = len(matrix[0])
for j in range(cols):
print(matrix[row][j], end=" ")
matrix = [
[4, 7, 9, 18, 29, 0],
[1, 9, 18, 99, 4, 3],
[9, 17, 89, 2, 7, 5],
[19, 49, 6, 1, 9, 8],
[29, 4, 7, 9, 18, 6]
]
row = 2
print_specific_row_of_matrix(matrix, row)
'''
run:
9 17 89 2 7 5
'''