Lambda & map / filter
One-line anonymous functions (lambda) and using them with map/filter/sorted.
Simple enough for a 5-year-old to understand
lambda: a one-line function
lambda is a short way to write a small, anonymous function. It returns a single expression.
square = lambda x: x * xprint(square(5))🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 21