Applying a Lambda to a Row exercise

Hi fellow students,

I don’t know why I’m getting an error: invalid syntax. Comparing mine to the solution, it seems like the perpetrator is highly related to ‘’. I tried to be be compliant on line breakers. is this the reason?

If you’re giving your anonymous function a name and spreading it out over multiple lines then I’m really starting to wonder why you’d want to use a lambda expression over a def statement

Writing an expression over multiple lines can be done by surrounding it in parentheses

1 Like

Thank you so much for your advice, ionatan!

I feel like I learned more from you than the online lessons!