DLS course 1, Week 2, Coding Assignment 1, Excercise 2

The question is

This is the code I used

[code removed]

I am getting this output

Can someone tell me what I am doing wrong?
I am not very fluent in coding, so I cannot figure it out. The same is happening when I am doing this in exercise 3 as well.

Your code returns e^x
Sigmoid is \frac{1}{1 + e^{-x}}

Oh okay. That helped.
Thank you!