How to Use Python Lambda Functions

How to Use Python Lambda Functions
How to Use Python Lambda Functions
English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 0h 34m | 117 MB

Python and other languages like Java, C#, and even C++ have had lambda functions added to their syntax, whereas languages like LISP or the ML family of languages, Haskell, OCaml, and F#, use lambdas as a core concept. Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions.

By the end of this course, you’ll know:

  • How Python lambdas came to be
  • How lambdas compare with regular function objects
  • How to write lambda functions
  • Which functions in the Python standard library leverage lambdas
  • When to use or avoid Python lambda functions

This course is mainly for intermediate to experienced Python programmers, but it is accessible to any curious minds with interest in programming. All the examples included in this tutorial have been tested with Python 3.7.

Table of Contents

1 Intro
2 What is a Lambda Function
3 Where Are Lambdas Useful
4 First Lambda Functions
5 Sort
6 Filter
7 Map
8 Reduce
9 Testing
10 Summary