Syntax Error Week1 Assignment 2

    # GRADED FUNCTION: happyModel

{mentor edit: code removed}

File "<ipython-input-22-77da7f136de7>", line 20
    model.add(tf.keras.layers.ZeroPadding2D(padding=(3,3), data_format=(64,64,3)))
        ^
SyntaxError: invalid syntax

This code give me a syntax error please suggest my mistake.

If you’re using the .add method, then you should not be using the “list of layers” method.
Use one or the other - don’t combine them.

1 Like

And if you’re using the “list of layers” method, you seem to have a mis-matched square bracket.

1 Like

It’s solved thanks alot @TMosh for your time and effort.