Error when running row_echelon_form()

Hi, I’m doing the first programming assignment and I am running into an error when running the function. It says it is a value error, but this is the code that was already in the assignment template, and I have not changed it. Should I specify a column when defining the pivot candidate? Does anyone how I can fix this?

The code you’re referring to is testing your code in the row_echelon_form() function. So there is a defect in your code.

Hint:
Each pivot candidate is an element along the main diagonal of the M matrix. So you need to specify two indices - both the same. The for-loop gives you the index.

Got it. Thanks!

1 Like