Python Tutorial - Map and Lambda Function

  Рет қаралды 91,871

Amulya's Academy

Amulya's Academy

Күн бұрын

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

Пікірлер: 114
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Lambda Function can take any number of arguments it can take 0 arguments also.
@anantgosai8884
@anantgosai8884 2 жыл бұрын
No matter how many videos are on top when i search related to python but I always click this channel videos, thank you for making it easy!
@donaldhamill2486
@donaldhamill2486 3 жыл бұрын
Great explanations! I appreciate your time and effort in making these!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@mathstalkswithruchika9746
@mathstalkswithruchika9746 5 жыл бұрын
Nice explanation I don't understand with book but your video provide better understanding about lambda and map
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@ernestanonde3218
@ernestanonde3218 Жыл бұрын
You are simply the best...keep this up. Subscribed and hit the bell for more
@gowtham-qj7qg
@gowtham-qj7qg 3 жыл бұрын
num1, num2 = map(int, input().split()) could you please explain where are the function and sequence in the above code?
@auoteauote2067
@auoteauote2067 2 жыл бұрын
if you use different lenght lists, lenght of result list will be equal to shortest one a = [2,3,4,5] b = [1,1,1] print(list(map(lambda x,y: x+y, a, b))) # output lenght is [3, 4, 5] equal lenght b
@saireddy4496
@saireddy4496 5 жыл бұрын
way of explanation is nice.... Thank u mam
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My pleasure :)
@stringswithakshat3405
@stringswithakshat3405 4 жыл бұрын
thank you, ma'am, you saved me..... ma'am, i have a question,, from which state you are...? i wanna meet you once
@ajitkumarpadhi6793
@ajitkumarpadhi6793 Жыл бұрын
Very good exolanation.
@AsKnownAsJohn
@AsKnownAsJohn 5 жыл бұрын
Good Explanation and voice.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@kareemsaheb5438
@kareemsaheb5438 4 жыл бұрын
You have nice skill set. amulya
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@adityajha1889
@adityajha1889 4 жыл бұрын
how to add two lists with map and lambda. very good vedios!!!
@alimoharam4362
@alimoharam4362 5 жыл бұрын
does the lambda function work with integers only ? and how to apply it to a char list ?
@pradeepvechalapu6454
@pradeepvechalapu6454 4 жыл бұрын
Can you make the videos on python interview questions:)
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Sure :)
@vfx7t
@vfx7t 3 жыл бұрын
Thank you good job sir !
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure :)
@shrikantkulkarni5550
@shrikantkulkarni5550 4 жыл бұрын
Your explanation is awesome and your voice is very sweet.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@shrikantkulkarni5550
@shrikantkulkarni5550 4 жыл бұрын
Hi, it would be great if you can make videos on pandas module. Thank you
@gnvinodkumar
@gnvinodkumar 4 жыл бұрын
I have seen many videos to clear my doubt with map which confuse me always , finally understood concept from your video,really appreciate your efforts to help beginners,would love to have more videos with respect to Data science .
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Glad to hear that :)
@vkd9442
@vkd9442 4 жыл бұрын
Amulya.. Do u have python complete playlist right from scratch..
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Checkout this: kzbin.info/www/bejne/f5e6kJuimc52a8U Thank you :)
@srujankumar5020
@srujankumar5020 5 жыл бұрын
way of explanation is simply superb, and u r voice is really awesome :)
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@sivaramakrishnagundru449
@sivaramakrishnagundru449 2 жыл бұрын
Nice explanation
@GauthamHC99
@GauthamHC99 5 жыл бұрын
Very good explanation ,it is crisp and clear. Thank you so much for the video :)
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Pleasure :)
@gowtham-qj7qg
@gowtham-qj7qg 3 жыл бұрын
you said in python 3 the map function return iterator what is meant by iterator?
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
I made a video on that, checkout that :)
@gowtham-qj7qg
@gowtham-qj7qg 3 жыл бұрын
@@AmulsAcademycould you please share the link, please?
@abhishekchakrabarty2930
@abhishekchakrabarty2930 4 жыл бұрын
Def we only use with user defined function right?
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Yes to define function we use def keyword :}
@priyasingh2924
@priyasingh2924 5 жыл бұрын
Good explanation
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@shubhamrangadal
@shubhamrangadal 6 жыл бұрын
8:03 hahaha,
@arunbabu328
@arunbabu328 4 жыл бұрын
i am in love with u r voice
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@ananasfamily6159
@ananasfamily6159 Жыл бұрын
😂😅😂 guzel konusyorsun yaaaa
@sivachaithu3381
@sivachaithu3381 3 жыл бұрын
If lambda take int and double as argument?
@manikshah2268
@manikshah2268 6 жыл бұрын
Please upload vedio of small projects
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
sure will do:)
@kotasuresh5633
@kotasuresh5633 6 жыл бұрын
Make on modules
@childhoodlife9029
@childhoodlife9029 4 жыл бұрын
Your voice is very sweet, where are you from ? Mean which state.And how old you are ?
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :) I am from Karnataka :)
@childhoodlife9029
@childhoodlife9029 4 жыл бұрын
@@AmulsAcademy how you learn programming ?
@shuvendratripathy2483
@shuvendratripathy2483 6 жыл бұрын
Thankx mam...
@sarahli6425
@sarahli6425 Жыл бұрын
well explained, thankyou!
@mrkiinnu
@mrkiinnu 2 жыл бұрын
Sweet and short nice video Amulya
@a.a8720
@a.a8720 4 жыл бұрын
is this py 2 or 3
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
python 3 :)
@a.a8720
@a.a8720 4 жыл бұрын
@@AmulsAcademy Thanks!
@lifepools5400
@lifepools5400 3 жыл бұрын
Very good explanation
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@ganeshnarala6757
@ganeshnarala6757 4 жыл бұрын
love your voice
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@punilchandrakutikuppala6753
@punilchandrakutikuppala6753 4 жыл бұрын
Mam,I want no of different examples on this lambda argument, can u give ur notes pls..
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
I din't have notes with me sorry :)
@yugendharsai
@yugendharsai 3 жыл бұрын
a = [2,5,8,9] def square(x): return x*x list(map(lambda x:x*x,a)) why it gives error list object is not callable
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
print("Hello World") def square(x): return x*x a = [2,5,8,9] print(list(map(lambda x:x*x,a)))
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
I am not getting any error here :)
@vasumath1427
@vasumath1427 4 жыл бұрын
Everything's good, what's undesired is ads😐😑
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Haha :)
@sandipansarkar9211
@sandipansarkar9211 2 жыл бұрын
finished watching
@dusicamilosavljevic6718
@dusicamilosavljevic6718 6 жыл бұрын
I love how you explained it. Thanks! :)
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
My Pleasure:)
@singisbling2500
@singisbling2500 4 жыл бұрын
Wonderful exact explanation Thanks a lot 🙏🙏🙏👌👌 ❤ for your lovely voice
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
My pleasure 😊
@kidsstorieslearning1300
@kidsstorieslearning1300 Жыл бұрын
Great explain
@anusuyar8423
@anusuyar8423 2 жыл бұрын
Super Madam👏
@tysionpatel1652
@tysionpatel1652 6 жыл бұрын
😍😍😍😍😍
@AbhishekYadav-mo6sf
@AbhishekYadav-mo6sf 4 жыл бұрын
angelic voice
@sunylly
@sunylly 4 жыл бұрын
啊,好魔性的声音~~~~学习了,感谢
@sridharmalepati3662
@sridharmalepati3662 6 жыл бұрын
Hi, in the square function, instead of the return, if you use yield, how to see the output? Even if i convert to a list, i am not able to see o/p in Python 3.5.2
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Try this: Yield returns generator object to print the value we need to use next() list1 = [1,2,3,4] def square(x): yield x*x result=map(square,list1) for i in result: print(next(i))
@sridharmalepati3662
@sridharmalepati3662 6 жыл бұрын
Thanks a lot for your prompt response !! Yes it worked!!
@drsmahesan203
@drsmahesan203 3 жыл бұрын
In Python, lambda function is actually called as lambda expression.
@mharish8818
@mharish8818 5 жыл бұрын
Very nice explaination in simplied way. Thanks a lot
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@drsmahesan203
@drsmahesan203 3 жыл бұрын
@8:08 what would happen if the two lists are of different lengths?
@nasiruddinshaikh1693
@nasiruddinshaikh1693 Жыл бұрын
thank u thanku mam
@01nithyaravi
@01nithyaravi 2 жыл бұрын
Excellent explanation.. Really great job 👍
@MR-ob1hi
@MR-ob1hi 4 жыл бұрын
Aoa We can convert list into tuple on python 4 yes or no
@yusefquinlan8279
@yusefquinlan8279 4 жыл бұрын
Really liked that, thank you.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Pleasure :)
@gautameapi7145
@gautameapi7145 4 жыл бұрын
Good video! very helpful Madam
@bareerakhan7569
@bareerakhan7569 6 жыл бұрын
Thank you so much you are the best
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
My Pleasure:)
@Pritamdas-bg7fp
@Pritamdas-bg7fp 6 жыл бұрын
thanks mam
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Welcome:)
@technicalarya4891
@technicalarya4891 4 жыл бұрын
Nice teacher
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@technicalarya4891
@technicalarya4891 4 жыл бұрын
Welco.
@thanipattavan
@thanipattavan 3 жыл бұрын
Tha KS a lot
@baliswathi8452
@baliswathi8452 6 жыл бұрын
thank you mam
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Welcome:)
@manmohanagarwal5410
@manmohanagarwal5410 6 жыл бұрын
thanks!!
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Welcome:)
@behappy-fp2iq
@behappy-fp2iq 5 жыл бұрын
You said at the end of the video "take care " ok got it . I'll take care of myself about what about you ???😄 (Don't take me wrong just kidding... )
@anubis9139
@anubis9139 4 жыл бұрын
lambdas can have 0 or more arguments, not 1 or more.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you for correcting me :)
@aspuser1081
@aspuser1081 4 жыл бұрын
என்பா நி தமிழ் பென்னுதான
@vikrammodh3745
@vikrammodh3745 6 жыл бұрын
Can you please upload video on making some small projects. Because i like your explanation. Thanks in advance
@rohitrockytgaming8966
@rohitrockytgaming8966 3 жыл бұрын
Your voice is like 15 year boy 😊
@dkf-qt6wk
@dkf-qt6wk 3 жыл бұрын
i am wondering if this is a boy's, girl's or a woman's voice :D
@andysondur
@andysondur 4 жыл бұрын
Only for your voice, I keep coming back.
Python Tutorial - Filter and Reduce Function
11:49
Amulya's Academy
Рет қаралды 45 М.
Python Tutorials - Decorators Part 1 | Introduction | Functions | Example
22:55
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 25 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
#43 Python Tutorial for Beginners | Filter Map Reduce
11:34
Telusko
Рет қаралды 585 М.
Python: Lambda, Map, Filter, Reduce Functions
9:59
Oggi AI - Artificial Intelligence Today
Рет қаралды 382 М.
Python Tutorials - List Sorting | sort method
10:47
Amulya's Academy
Рет қаралды 93 М.
Python Pattern Program - Printing Stars in Heart Shape
14:30
Amulya's Academy
Рет қаралды 592 М.
Negative Time is Real, Physicists Confirm. Kind Of.
6:59
Sabine Hossenfelder
Рет қаралды 19 М.
Python Program To Implement DFS Using Recursion | Data Structure
12:37
Amulya's Academy
Рет қаралды 27 М.