#4: Python map() & filter() | Python Best Practices

preview_player
Показать описание
Step by step video tutorials to learn Python for absolute beginners!

The built-in functions like map() and filter() allow us to write simpler, shorter, and more Pythonic code in place of using loops and branching. In this video, we will learn to use map() and filter() in Python with the help of examples.

~

Watch our videos and revise them with our Python App!

Timestamps:
0:00 Intro
0:16 Lambda functions
1:25 Python map() function
6:07 Python filter() function

Find Programiz elsewhere:

#python #programiz #pythonmapandfilter #learnprogramming #builtinfunctions
Рекомендации по теме
Комментарии
Автор

The app, the website, and the channel, all are great. Thanks to the team behind this. You guys are doing an awesome thing for the programming community. Thanks a lot.

abraiyan
Автор

amazing, thanks for the all-in-one video

jell._.y
Автор

good stuff - working my way through your videos and really impressed with the content and presentation. Lambdas are less intimidating than I thought!

badatcomputer
Автор

In my opinion you should be using List Comprehension rather than map() and filter(), especially as its if clause allows you to combine the functionality of map() and filter() into a single statement. I honestly can't think of any situation where map() has an advantage over List Comprehension. There are also Generator, Dict and even Set Comprehensions.

apmcd
Автор

best yt channel to learn python.I have seen other popular channels but this really taps in to building my intuition bcoz ur way of explaining and ur examples both are high level.Please add more series on python

shrirajthakare
Автор

Very understandable, thank you. Also map() didn't return a random number, that was a pointer to a memory location.

MrDelliSanti
Автор

U are a great coder. I couldn't understand map and filter but now o do
Thanks

humdrumsnail
Автор

Great for learning. Been to your site a few times and had difficulty finding the compiler. It's on the front page for sure but if it were on every page one could just click the button to make it show up on the next tab over and try all the code for oneself. That is very simple JavaScript to do btw. Not the ideal solution but it would work for me.

jquery
Автор

Another awesome tutorial
Thanks sir 😊

Mega_Flow
Автор

ty sir. very informative and helpful! keep make some great python guides! :)

idancalif
Автор

please make a vedio on reduce function, I really appreciate your work

pranshulgupta
Автор

what is the reason to use list and map while I can get same result without using them

obaydullahalnumanhasib
Автор

i want the solution for palindrom numbers from list using filter

ankitahase
Автор

p = ("concise and direct")
print(p)

cesararturocastanonacuna
Автор

please make full courses for coding in udemy or something im getting all of what you are saying and teaching!!! 🙄😶

SarasaYugantha