DLS/COURSE 4 Week 1 Assignment 2 Exercise 1 Happy Model Syntax Error

I consistently get syntax errors. It seems that I couldn’t understand what the documentation says but I really tried to understand I had gone step by step for about 10 times but I am still stuck. I don’t know much about tensorflow and keras. What am I missing could someone help me getting rid of these syntax errors. What is the correct way to implement these tensorflow functions?

1 Like

Hey! I also remember that i have the same problem. Basically u need to notice that, that is a list. Because of that, every line you wrote has to end up with , . Since it’s a list except for the last line, you don’t need to write , . Hope this helps!

1 Like

@CourseraFan has it exactly right.
The Sequential model is a set of layers, implemented as a python list,
Python lists are defined as a comma-separated list inside a set of square brackets.
You’re missing the commas.

1 Like

thanks a lot for your reply mate I solved it