<｜begin▁of▁sentence｜>### Instruction:
Given a 3x3 matrix, can you set the value at row index 1, column index 2 to 5, replace the entire second row with values [7, 8, 9], and set the third column with values from the first column of another 3x3 matrix filled with 1s?
### Response:
from igraph.datatypes import Matrix

# Creating a 3x3 Matrix
m = Matrix(3, 3)

# Setting the value 5 at row index 1, column index 2
m[1, 2] = 5

# Setting the second row to [7, 8, 9]
m[1] = [7, 8, 9]

# Setting the third column with values from another Matrix column
n = Matrix(3, 3)
n[2] = [1, 1, 1]
m[:, 2] = n[:, 0]

# Print the modified matrix
print(m)
<|EOT|>
