Comment line with index: `UNQ_C1` wasn't found in code

Even after passing all the test, i still get “Comment line with index: UNQ_C1 wasn’t found in code” an my result is still reading 0; somebody help me please

Hello @Shedrack_Owochoje_Ab

image

There are two lines at the beginning of each graded cell like the above. Don’t change them or you will get that error.

Cheers,
Raymond

1 Like

Don’t worry, this is a quite common situation. You are getting that error because by chance you delete some cells from the initial code. The most important warning while solving programming assignments is NEVER DELETE INITIAL CODE AND COMMENTS

That’s a good rule, but if you do have an accident there is a way to recover. Please see this article on the DLS FAQ Thread.

how to remove this error if i have removed that how to fix that now
???

1 Like

Get a fresh copy and re-do the assignment between assigned markers ###START AND END CODE HERE### @ansh77

How do I get a fresh copy of the assignment?
I am taking the Machine Learning Specialization course via Coursera and I need a fresh copy of Supervised ML Week 3 Logistic Regression final assignment.

  • Open your current notebook.
  • Go to “File->Rename”, and rename the notebook.
  • Go to the Lab Help menu (the question-mark inside a circle), and use “Get latest version”.
  • You will then be running the new clean notebook.
  • You can click “File → Open” and open the renamed copy in a new tab to “copy/paste” any work over to the new clean copy.

Note: Do not rename the new notebook. The grader always uses the notebook with the original file name.

Good morning. I am having the same problem ( “Comment line with index: UNQ_C1 wasn’t found in code”). If i have deleted some of the lines at the beggining of a graded cell, how can I recover the original version?

Here is a thread about how to get a fresh copy of a notebook.

Thanks!

closing the topic, try to create a new topic whenever you get issue as this is an old thread.