Hi,

Can someone please tell why I am getting Assertion error while executing Exercise 4 - initialize_with_zeros in Logistic_Regression_with_a_Neural_Network_mindset

# GRADED FUNCTION: initialize_with_zeros

def initialize_with_zeros(dim):

“”"

This function creates a vector of zeros of shape (dim, 1) for w and initializes b to 0.

```
Argument:
dim -- size of the w vector we want (or number of parameters in this case)
Returns:
w -- initialized vector of shape (dim, 1)
b -- initialized scalar (corresponds to the bias) of type float
"""
# (≈ 2 lines of code)
# w = ...
# b = ...
# YOUR CODE STARTS HERE
```

**Moderator Edit: Code Removed**

# YOUR CODE ENDS HERE

```
return w, b
```

##
dim = 2

w, b = initialize_with_zeros(dim)

assert type(b) == float

print ("w = " + str(w))

print ("b = " + str(b))

initialize_with_zeros_test(initialize_with_zeros)

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: