I was going through the assignment and got a syntax error. I am unable to identify the problem. Can anyone help please? The code part was this:
def augmented_to_ref(A, b):
### START CODE HERE ###
# stack horizontally matrix A and vector b, which needs to be reshaped as a vector (4, 1)
A_system = np.hstack((A,b.reshape((4,1)))
# swap row 0 and row 1 of matrix A_system (remember that indexing in NumPy array starts from 0)
A_ref = SwapRows(A_system,0,1)
I am getting error in the last line of above code, syntax error pointing to A_ref.
A_ref = SwapRows(A_system,0,1)
^
SyntaxError: invalid syntax
How do I fix this?