Error in tensorflow introduction sigmoid function

This is my solution code for the week 3 Tensorflow introduction assignment :

[Removed solution code]

But I am getting the following error : ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
1 result = sigmoid(-1)
2 print ("type: " + str(type(result)))
----> 3 print ("dtype: " + str(result.dtype))
4 print ("sigmoid(-1) = " + str(result))
5 print ("sigmoid(0) = " + str(sigmoid(0.0)))

AttributeError: ‘NoneType’ object has no attribute ‘dtype’

Can someone please spot the mistake !!

Hi, @Shivani.

I think you accidentally deleted the return statement at the end of the function.

Returning a should fix the problem :slight_smile:

Fixed by @shivani.

Good luck with the rest of the specialization :slight_smile: