# Can't write my own code in assignments (jupyter notebook)

**URL:** <https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376>\
**Category:** Improving Deep Neural Networks: Hyperparameter tun\
**Tags:** coursera-platform\
**Created:** [March 27, 2023, 9:14am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376 "2023-03-27T09:14:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reza\_Abbaszadeh](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Reza\_Abbaszadeh](https://community.deeplearning.ai/u/Reza_Abbaszadeh)\
**Post date:** [March 27, 2023, 9:14am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/1 "2023-03-27T09:14:39Z")

</div>

I tried to add my own code, and I couldn’t, and another issue is that, shift+Enter does not work too.

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://community.deeplearning.ai/u/saifkhanengr)\
**Post date:** [March 27, 2023, 9:39am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/2 "2023-03-27T09:39:29Z")

</div>

Hello @Reza_Abbaszadeh!

You can add code to cells that started as `# GRADED FUNCTION`. You cannot add your own code to the other cells. Also, you have to add your code between two lines only, as shown below. No need to add somewhere else.

```auto
# YOUR CODE STARTS HERE

# YOUR CODE ENDS HERE

```

Regarding the Shift+Enter, you have to wait until the previous cell has finished running before running the next cell. You can do this by waiting for the asterisk \* in the brackets next to the cell to disappear.

Best,  
Saif.

---

<div class="post-metadata">

**Author:** ![Reza\_Abbaszadeh](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Reza\_Abbaszadeh](https://community.deeplearning.ai/u/Reza_Abbaszadeh)\
**Post date:** [March 27, 2023, 9:42am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/3 "2023-03-27T09:42:05Z")

</div>

Thanks for your kind answer, I was just about to delete the topic,  
the problem was caused by an extension that I have previously installed on my chrome.  
I disabled it and all went well!  
Thanks.

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://community.deeplearning.ai/u/saifkhanengr)\
**Post date:** [March 27, 2023, 9:43am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/4 "2023-03-27T09:43:53Z")

</div>

I am glad you solved the problem. 😄

---

<div class="post-metadata">

**Author:** ![bhavana\_bathini](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@bhavana\_bathini](https://community.deeplearning.ai/u/bhavana_bathini)\
**Post date:** [August 18, 2023, 4:44am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/5 "2023-08-18T04:44:36Z")

</div>

so i don’t need to write the entire code?

---

<div class="post-metadata">

**Author:** ![saifkhanengr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/saifkhanengr/32/152858_2.png) [@saifkhanengr](https://community.deeplearning.ai/u/saifkhanengr)\
**Post date:** [August 18, 2023, 7:21am UTC](https://community.deeplearning.ai/t/cant-write-my-own-code-in-assignments-jupyter-notebook/297376/6 "2023-08-18T07:21:24Z")

</div>

You have to write your code between these two lines:

```auto
### YOUR CODE STARTS HERE ###

### YOUR CODE ENDS HERE ###

```
