stuck at week 3 assignement.
Event the euclidean function is graded as 0/10, which i fail to understand.
It has been so frustrating using this platform!
PLEASE SUGGEST, what can be done!
below is how i am writing the euclidean:
{moderator edit - solution code removed}
Its against policy to publish code solutions in public!
The function seems to be correct, perhaps you have deleted some cell or maybe changed the name of the file, I would suggest a Lab reset at this point!
Yes, at Gent says, your code is correct. This is a pretty straightforward function, of course. So also as Gent says, the problem must be something else wrong with your notebook. Do the other functions get graded successfully? What does the grader actually say under the “Show grader output” link for the euclidean function? That might give us some clue.
Gent’s point about changing the name of the file is another thing to check. If you are working in a renamed copy and click “Submit”, the grader doesn’t grade the notebook you are running: it grades the one opened by the “Launch Lab” link. So perhaps the grader is seeing different code than what you show above.
One other thing I notice is that the format of the “UNQ_C2” comment in your code is different than what I see. So did you perhaps copy this notebook from an older version of this course? That might also cause grader problems. In that case, Gent’s suggestion of getting a fresh copy and then “copy/pasting” over just your code from the “YOUR CODE HERE” sections is definitely the next thing to try. Here’s a thread about how to do that.
1 Like
I reset the notebook and deleted other versions. Now it worked!
Thank you both 
2 Likes
That’s great news! Thanks for confirming.
1 Like