Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lambda python

# Lambda is what is known as an anonymous function. Basically it's like a function but a variable

# This is the "python" way of writing a lambda function

multiply = lambda x,y: x * y 
# The x,y are the arguments used for the function and "x * y" is the expression

multiply(10, 10) #100

# Lambda are useful sometimes for a number of python projects.
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #lambda #python
ADD COMMENT
Topic
Name
9+1 =