Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lamda in pyton

# Define echo_word as a lambda function: echo_word
echo_word = (lambda word1, echo: word1 * echo)

# Call echo_word: result
result = echo_word('hey', 5)

# Print result
print(result)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #lamda #pyton
ADD COMMENT
Topic
Name
2+5 =