Used for small one-line functions

sum = lambda a, b: a + b
 
print(sum(4, 5))

output

9

Note

  • No def keyword
  • Only one expression