Python Tutorial - Map and Lambda Function
ฝัง
- เผยแพร่เมื่อ 19 ม.ค. 2025
- In this Python Programming video tutorial you will learn about lambda and map function in detail
NOTE: Lambda Function can take 0 or more arguments.
Generally in Python we will define a function using def keyword .
but this lambda functions doesn't contain any def keyword .
So the syntax of lambda function is,
lambda argument list:expression.
lambda can take 0 or more arguments
we can see the advantage of the lambda function when it is used with the some built in functions like map reduce filter.
map is the built-in function, and this function is used to apply a function to all the element of a sequence.
syntax is,
map(function,sequence)
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy