C1W2_Assignment - Error on original version of the notebook

When creating a post, please add:

  • Week 2
    Gaussian Elimination - Graded Assignment
  • The cell after
    M_swapped = swap_rows(M, 0, 2)
    print(M_swapped)

is erroring out. I have tried resorting the latest version per Coursera support but I stiill continue to get the error

Please post a screen capture image that shows the error message. Don’t include all of your code, just whatever is in the entire error message.

I would guess you’ve accidentally changed the cell type from Markdown to Code, so it’s trying to interpret the markdown as though it was python code. That doesn’t end well.

How do I revert it? Even If I restore the latest version from the help menu, it still doesnt work

If restoring doesn’t help, it most likely means you didn’t execute the process correctly: it will not replace an existing file, so you need to rename or delete the original first. Here are the fully detailed instructions.

But you may be able to fix the current one: just click on the malfunctioning cell and use the menu “Cell -> Cell type -> Markdown”.

Thank you sir! That helped.

1 Like