Lambda

1. Don’t use lambda with anonymously.

  • Dont’
f = lambda x: 2 * x
  • Good
def fun(x): return 2 * x