E731 and lambda expressions

Hello,

I am currently working through the Data Science Foundations skill path, and there are parts of the course where it advises that we should assign a lambda expression to a variable. This violates flake8 E731; you can read the details here: Do not assign a lambda expression, use a def (E731)

Is there a reason Code Academy is advising students to assign lambda expressions to variables instead of defining them as functions?

Hello @web2812550616, welcome to the forums! I imagine the course is trying to build familiarity with lambda expressions, by only introducing one new concept at a time?

1 Like

Hello @codeneutrino,

Thank you for your reply. I filed this as a bug with Code Academy and will see what the verdict is.

1 Like