Listing 08-17: Lambda function that takes a value and returns its double

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 08\08.17 - Lambda function that takes a value and returns its double.py
# Description: Lambda function that takes a value and returns its double
##############################################################################

a = lambda x: x * 2
print(a(3))
Click here to download the file