Map and Filter Functions in Python - Python Tutorial for Absolute Beginners | Mosh

preview_player
Показать описание
Confused about map, filter and lambda functions in Python? Watch this Python tutorial.

Python Exercises for Beginners:

Python Cheat Sheet:

Want to learn more from me? Check out my blog and courses:

Рекомендации по теме
Комментарии
Автор

Seems like full course is gonna be uploaded here in parts that's truely awsome

Feetrex
Автор

Hi Mosh,
first of all thanks you! every time i feel lost on any course im just coming back to your videos.
Now to the question: (btw i guess im having some problems with slicing and indexing)
in your for loop you said: prices.append(item[1]) for the list of tuples: [("Product1", 10), ("Product2", 9), ("Product3", 12)]
so the index 1 isnt it just: "Product2", 9 ? we have 3 items in our list, so how is the only one indexing of [1] understood that you want to take only the numbers on each tuple?
I do understand that index 1 of each tuple is a number. Guess i have to repeat indexing and slicing again

Qelacien
Автор

map() and filter() functions can be easily replicated by list comprehensions. They are mostly redundant.

saurabhprakash
Автор

Hi Mosh.
As you said in your javascript oop course, do you have any plan on creating a course about algorithm and data structures?
Your courses are awesome!

outlanderoutlander
Автор

Thank you very much for this video! It was very helpful! :)

tymothylim
Автор

What is the difference between these two?

reddevil
Автор

Hi, could anybody please tell me why he put 1 inside the brackets at 1:13?

kona
Автор

Hopefully your are fine
Dear sir i am from Pakistan and want to deep study of AI do you please help me???

lastlessons
Автор

Mosh please reply to my Facebook message!!!! regarding access to course website..

RaviSargam