Lambda functions in Python | Python Tutorial - Day #52

preview_player
Показать описание

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

This course is the father of all free or even paid courses of Python.

Dhrubo_Jyoti
Автор

This tutorial is a great way to learn about Lambda functions in Python! Thanks for the helpful resources!

LifeCodeGame
Автор

here are my personal notes:
Lambda functions are simply functions that can be anonymous. they are written in a single line of code to create mini functions and can be assigned to a variable. so you wouldn't come across the hassle to write "def" and focus on indentations. But lambda functions should not be replaced with normal functions because you wouldn't to compress a massive 40 line function into lambda :)

The syntax of a lambda function :
lambda parameters: expression
For example:
print((lambda x, y: x + y)(3, 5))
now if you assign it to
sum = lambda x, y: x + y
print(sum(3, 5))

output:
8

thats it :)

someMF_XD
Автор

wanted to see me after 48 days
day 52 done.
thanks MR. Harry for this amazing course

theroshantune
Автор

Harry bhai anime lover hai bataya nahi aapne, t-shirt dekho bhaiya ki! 😎😘

siddhubhai
Автор

Kon Kon half python🐍 seekh kar confident feel kar raha hai

tajinder
Автор

I am just reading this topic and your video came out. Thank you

afrojaalam
Автор

Thank you so much sir for creating this video!

technikalproblem
Автор

Amazing
The best resource for anyone to learn a language easily. Nice video...never seen such a tutorial video...

romapatel
Автор

#QUESTION: How to define a doctstring when using a lambda function?

aryyann
Автор

Make a tutorial on React Native
We are waiting..

yugchauhan
Автор

This course is better than all paid courses of python

Hassaan-ui
Автор

Day #52 in 100DaysOfCode. I will catch up today for sure.

thatcoolkid
Автор

Day #52 done. The tempo isn't going down 🔥

mariamhasan
Автор

Python lambda is similar to Javascript First Class Function. Thank you

rokckerzzzz
Автор

Gr8 vid! One question, is this concept of lambda functions same in every other language?

kartikeykakaria
Автор

Honestly, the video and the fundamentals of you are the best, but it will only prove beneficial if you could help us with some 30-40 exercises to do. In order to gain the practical concepts of python. Because we have to refer to multiple sites to solve the questions and they use mixed concepts. So I would ask you to give us exercises based on the topic you are teaching.

suyashmishra
Автор

Thank u very much for the quality content

abdullahalhuzaifi
Автор

# addition programme
factorial=lambda x, y:x+y
print(factorial(5, 7))

# cube programme

cube=lambda z:z**3
print(cube(5))

# square programme

square=lambda a:a*a
print(square(3))

# average programme

avg=lambda e, f, g:(e+f+g)/3
print(avg(10, 20, 30))

vaibhavsoni
Автор

10 Videos dykh lii nhi smjh aai Harry Bhai sy Aaa gai Yrr

IronWolf