C5W3 trigger word detection

Hii Team,
All my test cases have passed but the grader still gives me zero marks and shows the error Cell#20 Can’t compile the student’s code. Error: TypeError(“‘NoneType’ object cannot be interpreted as an integer”).
Can u please help me out?
My lab id is ‘tihyezdn’

Hi @Luqmaan_Ahmad

If you have completed all the tests and the outputs matched the expected outputs. Then try:

  1. refreshing the kernel
  2. rerun all the code - the run all command should do it.

Also, be sure you are not submitting a notebook that you renamed.

Thanks for the response.
The issue is now resolved.

It worked for me only on my 3rd attempt:

  1. Initial (failed at 0%).
  2. After “Restart & Run All” (failed at 0%).
  3. After “Restart & Clear Output” (succeeded with 100%).

I am not sure if it was the method (“Run All vs. Clear Output”) or just another random factor that helped.

“Clear Output” is handy if you added a lot of debug “print()” statements to your code, such that the notebook file gets extremely large. The grader seems to not like that, it can cause the grader or kernel to time-out.

But it doesn’t have anything specifically to do with the topic of this thread.

The topic of this thread is about the error “Cell#20 Can’t compile the student’s code. Error: TypeError(“‘NoneType’ object cannot be interpreted as an integer”).” and 0% grade for the lab C5W3. I encountered this error twice in a row, as I described earlier.