About getting the error in the code

i think my code is right but till i get a error .i think in function there is a mistake by my side so plz tell me…
[Code removed by moderator]

Hello @Sanket_Yadav ,

As per the community guidelines, learners are free to post their errors copy pasting or screenshots forms and discuss about it, but not supposed to post screenshots of code snippets solutions or their notebooks or publicly on community.

So send me your notebook via dm such that I can check where it went wrong.By clicking on the profile picture, you will see an option to message.There you can attach your notebook. Then we can discuss the issues here, under the topic you created.

With regards,
Nilosree Sengupta

Hello @Sanket_Yadav ,

Btw as per your screenshots, these are from Week 2, not Week 1. Hence, I am shifting it to the right category.

As per your code, I can see you have forgotten to subtract 1 from the array
where you are converting sequences to a numpy array.

It’s given in the hint :

#Convert sequences to a numpy array. Don’t forget to substact 1 from every entry in the array!

With regards,
Nilosree Sengupta