W2_A2_Initialize with zeros_datatype error

I am getting an error in the code which is already pre written in the jupyter notebook. Can someone pls help me ?

Hi, @Tanishq_Shivram ,

The bias, b, should be set to float as the data type. Here is how to do it:


2 is an integer and 2. or 2.0 is a float. Your b should be a float.

yes sir it is working now. thankyou

Thank you for saving me any more time on this! It’s always the obvious problems that aren’t so obvious.