# Lambda function = A small anonymous function for a one time use (throw away function) # They take any number of arguments, but have only 1 expression # Helps keep the namespace clean and is useful with higher-order functions # 'sort()', 'map()', 'filter()', 'reduce()' # lambda parameters: expression double = lambda x: x * 2 add = lambda x, y: x + y max_value = lambda x, y: x if x > y else y min_value = lambda x, y: x if x < y else y full_name = lambda first, last: first + " " + last is_even = lambda x: x % 2 == 0 age_check = lambda age: True if age >= 18 else False print(double(2)) print(add(3, 4)) print(max_value(6, 7)) print(min_value(9, 8)) print(full_name("Spongebob", "Squarepants")) print(is_even(5)) print(age_check(21))
i have a query regarding java. i have completed the 12 hour java full course and wanted to know how we can use database and which database we can use to learn for java
# Lambda function = A small anonymous function for a one time use (throw away function)
# They take any number of arguments, but have only 1 expression
# Helps keep the namespace clean and is useful with higher-order functions
# 'sort()', 'map()', 'filter()', 'reduce()'
# lambda parameters: expression
double = lambda x: x * 2
add = lambda x, y: x + y
max_value = lambda x, y: x if x > y else y
min_value = lambda x, y: x if x < y else y
full_name = lambda first, last: first + " " + last
is_even = lambda x: x % 2 == 0
age_check = lambda age: True if age >= 18 else False
print(double(2))
print(add(3, 4))
print(max_value(6, 7))
print(min_value(9, 8))
print(full_name("Spongebob", "Squarepants"))
print(is_even(5))
print(age_check(21))
can u make django tutorial
Hey Bro.. your videos are crisp, straight and easy to learn… please consider making videos on unit testing… thanks a lot.. god bless you
Thanks a lot bro just want i am thinking for . Can you also make a tutorial on Lambda decorators please 😢🙏
Thank you! In masters program now and 1) you've been a life-saver and 2) I have been waiting for this particular video to come out.
Thanks Bro you made lambda crystal clear for me. Always look forward to your vids 🎉🎉🎉
thank you for the different examples, it helped clarify my questions
I love your tutorials ,they are very easy to understand compared to others ,but I would like more exercises so I can remember better.
Thanks a lot bro . Can you aslo make a video on lambda Decorators in python please .
Great ❤❤❤
yo, just watched previous vid and this video is out!
bro is great
i have a query regarding java. i have completed the 12 hour java full course and wanted to know how we can use database and which database we can use to learn for java
Golang please 😊
We need Vue tutorial
Nothing much, hbu?
I really wish i get hired cuz of ur videos.
gordon freeman