filmov
tv
lambda function to find the sum of 2 given numbers in python in telugu

Показать описание
Topic Nodes:
'''
Anonymous Functions:
or
Lambda Functions:
=function without name or nameless functions
=case study: when we want to pass function as argument to another function
'''
'''
Normal functions:
def funct_name(parmeters_list):
expression
return val
lambda/Anonomus functions:
syntax:
lambda arguments_list:expression
'''
# more than one arguments as input case
#q)write a program to create a lambda function to find the sum of 2 given number?
# lambda function
s = lambda x,y : x+y
print(s(10,20))
'''
Anonymous Functions:
or
Lambda Functions:
=function without name or nameless functions
=case study: when we want to pass function as argument to another function
'''
'''
Normal functions:
def funct_name(parmeters_list):
expression
return val
lambda/Anonomus functions:
syntax:
lambda arguments_list:expression
'''
# more than one arguments as input case
#q)write a program to create a lambda function to find the sum of 2 given number?
# lambda function
s = lambda x,y : x+y
print(s(10,20))