# Grader error assignment 1

**URL:** <https://community.deeplearning.ai/t/grader-error-assignment-1/18234>\
**Category:** Sequence Models\
**Tags:** coursera-platform\
**Created:** [June 30, 2021, 12:46pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234 "2021-06-30T12:46:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ans](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ans](https://community.deeplearning.ai/u/ans)\
**Post date:** [June 30, 2021, 12:46pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/1 "2021-06-30T12:46:19Z")

</div>

Can’t compile the student’s code. Error: TypeError("‘NoneType’ object is not subscriptable")  
why am i getting 0 points ,grader output is shown above

---

<div class="post-metadata">

**Author:** ![Kic](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/kic/32/76339_2.png) [@Kic](https://community.deeplearning.ai/u/Kic)\
**Post date:** [July 2, 2021, 10:39am UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/2 "2021-07-02T10:39:38Z")

</div>

Hi @ans ,

Which week of the assignnment 1 you are referring to? Also, could you give us more information to diagnose the problem. For example, submission summary etc, so that we know which part of the code is causing the problem.

---

<div class="post-metadata">

**Author:** ![ans](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ans](https://community.deeplearning.ai/u/ans)\
**Post date:** [July 3, 2021, 3:57pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/3 "2021-07-03T15:57:17Z")

</div>

> [@Grader errors if partial work is submitted](https://community.deeplearning.ai/t/grader-errors-if-partial-work-is-submitted/8937):
>
> Hi everyone, while I was working on emoji assignment, I ran into a pretty disappointing error. If you submit the assignment before you have finished all the graded functions, the grader will break and return a 0/100 grade. In my opinion, it is a better idea to allow partial submittions, or at least specify this condition. Otherwise, people will lose a lot of time to look for non-existing errors. More precisely, the problem is with None-type pre-written variables in graded rows. I think my subm…

is this the reason?

---

<div class="post-metadata">

**Author:** ![Kic](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/kic/32/76339_2.png) [@Kic](https://community.deeplearning.ai/u/Kic)\
**Post date:** [July 3, 2021, 4:36pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/4 "2021-07-03T16:36:32Z")

</div>

Hi @ans,

You should check your code by running the unit test provided for you. If your test result is matching the expected output, or with message ‘all test passed’, then you have some confidence on your code as you progress further with your assignment. That is the purpose of providing test cases to help you assess how well your code is doing. If your code failed to pass the unit test, what is the point of submitting your assignment.

If you need help with any error encountered when running the test cases, do let’s know by posting here, giving details of which week, which assignment, which function/section of the code, what errors, including error traceback etc.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [July 3, 2021, 7:22pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/5 "2021-07-03T19:22:43Z")

</div>

@ans:  
Re: _I ran into a pretty disappointing error…_

Yes, you have to complete the entire assignment before you can submit it for grading.

---

<div class="post-metadata">

**Author:** ![ans](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ans](https://community.deeplearning.ai/u/ans)\
**Post date:** [July 5, 2021, 11:10am UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/6 "2021-07-05T11:10:28Z")

</div>

so either 0 or 100?  
this was not the case in prev courses

---

<div class="post-metadata">

**Author:** ![Kic](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/kic/32/76339_2.png) [@Kic](https://community.deeplearning.ai/u/Kic)\
**Post date:** [July 5, 2021, 1:16pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/7 "2021-07-05T13:16:48Z")

</div>

Hi @ans

What is important is your learning. This DLS series of courses has been updated with a new grader. If there is anything we can help you with your learning, do drop us a post here.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [July 5, 2021, 3:38pm UTC](https://community.deeplearning.ai/t/grader-error-assignment-1/18234/8 "2021-07-05T15:38:59Z")

</div>

If you left any of the “= None” code in the notebook, where you’re supposed to add your own code, that will often cause a syntax error and break the grader.
