My Code vs Hint Code


Hi, Can you tell what am I doing wrong?? I wrote the exact same code, but it continuously showed error. Once I copied the code from hint, the code ran.

Thank You

Nevermind, I have now found my mistake. I didn’t insert comma after writing the lines

Yes, in the Sequential API you are creating a list of functions. But in the Functional API, that will be different.

Here’s a thread which gives a nice introduction to the Sequential and Functional APIs.

BTW you filed this thread under DLS Course 2, but I don’t recognize that code from any DLS courses.

Yeah, I’m sorry, it’s from MLS Course 2