How to use map() function in Python | 2MinutesPy

preview_player
Показать описание
#map #mapping #python #pythonprogramming #2minutespy

🖐Hey, want to know how to use Python's map() function and what it is?

Ever found yourself writing repetitive loops just to apply a function to each element in a list? Well, fret no more! The map function swoops in to save the day, offering a cleaner and more elegant solution.

In this video, you'll see what the map() function does and why it's so handy. Then, we'll jump right into some practical examples to see the map() function in action.

More 2 Minutes Python Tutorial:

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

Imo this is becoming the best python teaching channel on YT, explains things clearly and quickly, keep it up!
Btw I'd love to see a video about lazy evaluation, I never really understood it

andri
Автор

Thank you so much. This is exactly the channel I (we all) needed. I have some experience with programming and Python, but many topics are still new to me. Here I can learn these things so fast. Thanks again, and I hope this channel will grow and educate us all.

matypok
Автор

Amazing contents. Please make a video on recursion and creating tree hierarchy

kashifrana
Автор

Thanks for another video!
Perhaps I'm stupid as can be, but could you please clarify if you got time on 1:57 how does the add_numbers in the map function "know" to take the first element of first_iterable and 1st element in second_iterable without passing them as arguments?

olgakar
Автор

But many developers didn't prefer map over for loops, but yeah sometimes map function can be handy

maxpythoneer
Автор

Hey isn't map a higher order function

Rahule
Автор

Shouldn’t people be using comprehension instead?

jmreagle
welcome to shbcf.ru