Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Example of lambda function in python with list

tables = [lambda x=x: x*10 for x in range(1, 11)]
  
for table in tables:
    print(table())
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Example #lambda #function #python #list
ADD COMMENT
Topic
Name
1+6 =