Lambda Expressions & Anonymous Functions - Python Tutorial

  • 2019-10-07 09:18 AM
  • 132

Lambda expressions - also known as “anonymous functions” - allow you to create and use a function in a single line. They are useful when you need a short function that you will only use once. For example, when using the map, filter and sort methods.