I need help to fix the bug of the course T.T

{mentor edit: code image removed}

i’ve been sitting on my chair for 6 hours but can fix this bug

An exception was thrown while running your function: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all().
Input matrix:
[[1 0 0 5]
[0 1 0 6]
[0 0 1 7]]

I need help please

1 Like

First, please do not share your code on the Forum. That’s not allowed by the Code of Conduct. If a mentor needs to see your code, we will contact you with instructions.

A few tips:
image
You don’t need the ‘-1’ here.


Here you want to iterate through all rows (using the “row” variable), not just the substitution row. Also, you are missing the “augmented = True” parameter.

1 Like

Sorry for my mistake and thanks for your help

1 Like