I keep getting assertion error - Week 1 programming assignment 2

Here’s another recent thread that describes the Functional API in a tiny bit more detail.