Hi everyone. my lab keeps on saying name error .
TypeError Traceback (most recent call last)
in
8 ### END CODE HERE ###
9
—> 10 print(f"Determinant of matrix A: {d:.2f}“)
11
12 print(f"Solution vector: {x}”)
TypeError: unsupported format string passed to NoneType.format
Hello @Sdumo_LuckySibiya,
The determinant d is None, therefore python is breaking when trying to round it here:
print(f"Determinant of matrix A: {d:.2f}“)
Please check how you are computing the determinant d.
Thanks,
Lucas
everything in my notebook says the same thing. I havent attempted question 5 and six but when I run them they give me the same erro as the ones I did so um now confused
Can you share your Lab ID with me?
In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
I will take a look to check what os going on.
Thanks
Thnks I got it. I had to refresh the notebook
Now im having a problem in exercise 4 when I insert the codes the A_ref doesnt change. I doont know what is it that um doing wrong because I can insert the codes down the end but nochanges to A_ref
moderator edit - solution block removed
Hi @Sdumo_LuckySibiya,
Please avoid posting solutions to exercises, because this goes against our Community Guidelines. When you have to do that, please do so as a DM. Thanks!
As I could see in your solution, you haven’t finished to replace all the None
values assigned to A_ref
so that’s why when you run the code, nothing happens, because change to A_ref
is replaced by None
Thanks,
Lucas
oky sorry about that. I will use the DM