Week2 assignment 1 exercise 4 initializing variable.
AssertionError Traceback (most recent call last)
in
2 w, b = initialize_with_zeros(dim)
3
----> 4 assert type(b) == float
5 print ("w = " + str(w))
6 print ("b = " + str(b))
AssertionError:
Show the above erro but i want to edit it unable to edit in notebook.
Mubsi
June 29, 2021, 11:37am
2
I don’t think learners can edit unit tests in the notebook.
Mubsi
June 29, 2021, 11:42am
3
Hey @Afsar_Khan , yes, so, I doubled checked, learners can’t edit unit test code blocks. So, if your test is failing then it means there’s a mistake in the exercise code block above.
Mubsi
June 29, 2021, 11:43am
4
And from the looks of it, you are declaring variable b
as an integer. You need to declare it as a float
. Look up on how to declare floats in python.
Yes, the issue has been solved I declared the variable as float and it’s ok now, Thanks alot
1 Like