Hi,

I tried to solve this problem, and the code runs well, but I don’t know why I’m getting an error. The error says, “Failed test case: t_value has incorrect type. Expected: <class ‘function’>, but got: <class ‘numpy.float64’>.”

Hi,

I tried to solve this problem, and the code runs well, but I don’t know why I’m getting an error. The error says, “Failed test case: t_value has incorrect type. Expected: <class ‘function’>, but got: <class ‘numpy.float64’>.”

You are not allowed to publicly publish solutions even if they might be wrong.

I am not familiar with this course but are you using you importing numpy by yourself?

If so try to perform the calculation with plain python maths not use numpy!

Oh, I’m so sorry! This is my second time participating in the community, and I didn’t know about the guidelines regarding publishing solutions. I’ll make sure to follow the rules from now on. As for your question, yes, I imported numpy myself. I’ll try to perform the calculation using plain Python math instead. Thank you for pointing that out!

1 Like

The codes shared by you in this post tells you are probably using an obsolete copy of the assignment. make sure you update your lab and get a fresh copy and re-do your assignment.

Use the below link for instructions on how to get a fresh copy of your assignment

Regards

DP

2 Likes