Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use if else in lambda python

lambda <arguments> : <Return Value if condition is True> if <condition> else <Return Value if condition is False>
lambda x : True if (x > 10 and x < 20) else False
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #lambda #python
ADD COMMENT
Topic
Name
1+9 =