Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lamda in f string


x = -20.45
print(f'Lambda Example: {(lambda x: abs(x)) (x)}')

print(f'Lambda Square Example: {(lambda x: pow(x, 2)) (5)}')
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #lamda #string
ADD COMMENT
Topic
Name
7+7 =