# Week1, assignment 2

**URL:** <https://community.deeplearning.ai/t/week1-assignment-2/40390>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [September 21, 2021, 5:19pm UTC](https://community.deeplearning.ai/t/week1-assignment-2/40390 "2021-09-21T17:19:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedsouari](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@ahmedsouari](https://community.deeplearning.ai/u/ahmedsouari)\
**Post date:** [September 21, 2021, 5:19pm UTC](https://community.deeplearning.ai/t/week1-assignment-2/40390/1 "2021-09-21T17:19:28Z")

</div>

_{moderator edit - solution code removed}_

facing a problem with this section, its my first time with keras

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [September 21, 2021, 11:33pm UTC](https://community.deeplearning.ai/t/week1-assignment-2/40390/2 "2021-09-21T23:33:48Z")

</div>

What you are declaring there is a python list of layers. The syntax of a list in python is that the elements are separated by commas. This is what is causing the syntax error that you showed [in your other post](https://community.deeplearning.ai/t/course-week1-assignment2/12730/11). You need a comma after each layer declaration within the “Sequential” definition.

Your definition of the first zero padding layer is also going to be a problem: you are both defining the function and then calling it with an argument, which will create a tensor instead of a layer definition. You should only have one set of parens on each layer definition.

Also note that there isn’t anything called _tlf_ in this notebook, unless you created it. What they give you in the “import” block at the beginning of the notebook is this:

`import tensorflow.keras.layers as tfl`

---

<div class="post-metadata">

**Author:** ![ahmedsouari](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@ahmedsouari](https://community.deeplearning.ai/u/ahmedsouari)\
**Post date:** [September 21, 2021, 11:45pm UTC](https://community.deeplearning.ai/t/week1-assignment-2/40390/3 "2021-09-21T23:45:42Z")

</div>

Thank you, very clear. Everything passed

Téléchargez [Outlook pour iOS](https://aka.ms/o0ukef)
