Episode

Lambdas | More Python for Beginners [4 of 20]

Methods like filter on a Python list allow you to find items based on criteria you specify through the use of a function. However, for simple comparisons (like equality or comparison to a number), it doesn't necessarily make sense to create a function for one line of code. By using lambdas you can create the function inline without having to populate the namespace with another named item.

Watch the Python for Beginner series here: https://aka.ms/PythonBeginnerSeries
For the Full 'Intro to Python' course on Microsoft Learn: https://aka.ms/MSLearnPython
All video content will available at: https://github.com/microsoft/c9-python-getting-started/
First series: https://github.com/microsoft/c9-python-getting-started/tree/master/python-for-beginners
Second series: https://github.com/microsoft/c9-python-getting-started/tree/master/more-python-for-beginners
Third series: https://github.com/microsoft/c9-python-getting-started/tree/master/even-more-python-for-beginners-data-tools

#microsoftdeveloper #morepythonforbeginners #learntocode

Python