I have an error in week2 assignment

You must have modified it accidentally then. You can get a fresh copy of the notebook by following the instructions on this thread.

In case there was other accidental damage, my suggestion would be to start over with a clean copy from scratch and reimplement things.