W2 A2 | Data type not understood

I’m getting an error stating " data type not understood"
I think the code is correct and for np.zeros() dtype is optional while creating the array.

{moderator edit - solution code removed}

please help to resolv

Hi @Ian_Franson_Mendonca ,

You might want to double check the way you are using the np.zeros function. There are at least 2 errors right now:

  • The first parameter is missing some parenthesis
  • The second parameter is not being provided.

Check that out and give it another try! Let m know how it goes.


1 Like

And as soon as you fix the errors that Juan has rightly pointed out, you will fail the assertion that the type of b should be float. Note that in python 0 and 0. are not the same thing.