Week 1 Assignment 2 - layers of happyModel

Hi, I’m trying to insert the layers in the sequential model but I keep getting a syntax error and I don’t understand what’s the problem. For example:



I also tried to use ‘tfl’ like the hint says but it also doesn’t work .

You are creating a Python list. That’s why there are square brackets.
Inside the list, every item must be separated by commas.
So add a comma at the end of each layer definition.

1 Like