Advanced Python - Lambda Function, Filter and Map #03
Вставка
- Опубліковано 15 лип 2024
- This is a python tutorial for everyone who already knows the basics!
Welcome to Advanced free course, where you can further polish your programming in Python on your own! Begin your adventure with Software-Engineering now!
Advanced Python Course:
• Advanced Python
Channel Page:
/ @definitelynoah
Outro Music:
/ 04-olivaw-reckless
Outro Music License:
creativecommons.org/licenses/...
Timecodes
00:00 - Intro
00:05 - What is Lambda
01:06 - Creating a Lambda
02:24 - Proper use of Lambda
03:04 - Passing parameters to a Lambda
03:33 - Default Parameters
04:17 - Using functions within a Lambda
05:04 - Specific Lambda Conditionals
05:50 - Mapping with Lambda
06:34 - Filter Function
07:48 - Filter with Lambda
08:14 - Outro
#coding #programming #python #tutorial #course - Наука та технологія
Thanks for making this video. Breaking the syntax down and explaining it helps a lot.
thanks for the class
I understood the concepts after looking through hundreds of other videos
I'm from Brazil, and I've already recommended your playlist to everyone here
make a tutorial about Pandas and how to start understanding Data Science with Python.
Thanks
I love your tutorial and style, and the video of yourself in the corner is way cool! One favor could help A LOT of people out there: could you please zoom your IDE's window while you are coding? It would make it easier for us older and vision-impaired coders to see what your are doing!
I will try to do so!
Or at least I will keep the font bigger.
Thanks for this!
So, if I understand this correctly, lambda functions don't accomplish anything that couldn't be done without them. They merely shorten your source code.
Basically yes. However it is also more efficient to use as it doesn't store itself in memory.
Awesome
Is there anything at all that lambda allows you to do that an if statement doesn't?
This code snippet seems very unintuitive.
(a + b) % 2 and 'odd' or 'even'
I think most coders would struggle to understand that. Better would be
'odd' if (a + b) % 2 else 'even'
It's shorter and more easily understood.
Why do I need this? 🤔
Why not just write a proper function?
def function():
Lambas are mostly useful for when you need a function that will only be used once.
Awesome channel, you will be big :). Do decorators?
Thank you! I will eventually cover those.
hi noah good luck can i have ur insta or telegram?
Hi, Sorry I don't really post on either of those.
@@definitelynoah i want to contact with u and know a brief bio
If you want to contact me, there is an email address in the 'about' section of my channel.
@@definitelynoah hi noah i cant find ur email in about