Map, Filter, and Reduce Functions || Python Tutorial || Learn Python Programming

///Map, Filter, and Reduce Functions || Python Tutorial || Learn Python Programming

Map, Filter, and Reduce Functions || Python Tutorial || Learn Python Programming

FavoriteLoadingAdd to favorites

The map, filter, and reduce functions simplify the job of working with lists. In this lesson, we show you how to use each function. If you also use lambda expressions, you can accomplish a great deal in a single line of code!

This video was made possible with the help of our Patrons on Patreon! We would especially like to recognize the generosity of our VIP Patron, Carlos A. We are so happy you are on the Socratica Team, Carlos!

➢➢➢➢➢➢➢➢➢➢
To learn Python, you can watch our playlist from the beginning:

➢➢➢➢➢➢➢➢➢➢
To​ ​help​ ​us​ ​make​ ​videos more quickly,​ ​you​ ​can​ ​support​ Socratica at:

​Patreon​:

Socratica Paypal:

We also accept Bitcoin! 🙂
Our​ ​address​ ​is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Thank​ ​you!!

➢➢➢➢➢➢➢➢➢➢
If you’d like a reference book, we recommend “Python Cookbook, 3rd Edition” from O’Reilly:

The Mythical Man Month – Essays on Software Engineering & Project Management

➢➢➢➢➢➢➢➢➢➢
You​ ​can​ ​also​ ​follow​ ​Socratica​ ​on:
-​ ​Twitter:​ ​@socratica
-​ ​Instagram:​ ​@SocraticaStudios
-​ ​Facebook:​ ​@SocraticaStudios

➢➢➢➢➢➢➢➢➢➢
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)

source

By |2019-07-09T21:07:02+00:00July 9th, 2019|Python Video Tutorials|28 Comments

28 Comments

  1. Constructive Bytes July 9, 2019 at 9:07 pm - Reply

    An explicit for loop is always more readable than one liners.

  2. Deojeet Sarkar July 9, 2019 at 9:07 pm - Reply

    I felt like I'm going to die when the 3rd function arrived. 😨

  3. JourneyTo Coder July 9, 2019 at 9:07 pm - Reply

    LOL Friend Face!

  4. Sakthees Waran July 9, 2019 at 9:07 pm - Reply

    I don't know whether this socratica channel actually as this girls really educated are they just reading the script given by someone I don't know whether they are really why so clever early they know this stuff but they do well in the video I can also understand all the videos but my doubt is that that these girls I don't think really are very professional in the subject are very acquainted in the subject not appointed disappointed so it has to be something to say that saw kritika is really acquiring beautiful and clever and brainy ladies for this making this video OK anyhow you make good video socratica thank you

  5. ZyptosKid July 9, 2019 at 9:07 pm - Reply

    I think reduce is a great and capable function. Just because the head creator of Python isn't fond of it doesn't invalidate it's great value. If you feel confused about how it works still, Here's a more visual way to explain it that I used with my peers:

    # suppose you have a function that takes two inputs and concatenates them together
    # fn(x, x) -> xx
    #
    # and that your inputs are: x, [x,x,x,x,x] (aka one character and a list of characters)#
    # reduce does this:
    # fn(x, x) -> xx [x,x,x,x]
    # fn(xx, x) -> xxx [x,x,x]
    # fn(xxx, x) -> xxxx [x,x]
    # …
    # until -> xxxxxx
    #
    # aka iterable object reduced to len = 0
    #
    # reduce takes a function with two inputs, a sequence of data, and a starting
    # value. It applies the function to the starting value and the first value of the sequence,
    # uses the result as the new starting value, and moves one step in the sequence.

  6. Adel Shehadeh July 9, 2019 at 9:07 pm - Reply

    I like your tone. It makes me take the content very seriously.

  7. Sriram R July 9, 2019 at 9:07 pm - Reply

    Excellent video!

  8. Kristy Whalen July 9, 2019 at 9:07 pm - Reply

    I bet she excels at analeyes'ing 😀

  9. Sina M July 9, 2019 at 9:07 pm - Reply

    "how could this happen? I just don't know" :))

  10. Thành Vinh Nguyên Tô July 9, 2019 at 9:07 pm - Reply

    That's efficient teaching

  11. Xinglan Tan July 9, 2019 at 9:07 pm - Reply

    Oh this explanation is so cool!!Loving it !!!

  12. anirudh Sharma July 9, 2019 at 9:07 pm - Reply

    So good

  13. Muhammad Ahmad July 9, 2019 at 9:07 pm - Reply

    AM I THE ONLY ONE FEELING LIKE ETHAN HUNT LISTENING TO Good morning, Mr. Hunt. Your mission, should you choose to accept it…

  14. Ivandro Ismael Gomes Jao July 9, 2019 at 9:07 pm - Reply

    3:09 – "Do not forgot your jacket if you are visiting Argentina" ahaha that was gold!

  15. Ivandro Ismael Gomes Jao July 9, 2019 at 9:07 pm - Reply

    is she indian?

  16. Jayavardhan Uppalapati July 9, 2019 at 9:07 pm - Reply

    Why so serious..Lets put a smile on her face..ha ha ha

  17. Pandajuice22 July 9, 2019 at 9:07 pm - Reply

    I don't ever see the point of map() when in the example in the video you could just use map comprehension:
    radii = [2, 5, 7.1, 0.3, 10]
    area = [math.pi * (r**2) for r in radii]

    To me that seems so much more concise and simple. I love the vids though thanks for making them.

  18. Omar Malass July 9, 2019 at 9:07 pm - Reply

    Why am I watching this on my holiday

  19. Hovnan Alexanian July 9, 2019 at 9:07 pm - Reply

    Very sharp and unnatural tone. Are you trying to sound like a gender neutral robot? Your content is good and delivery is unique, overall I like it no matter what your are trying to achieve.

  20. Eleonora Stentella July 9, 2019 at 9:07 pm - Reply

    I am currently attending a university master in data science. These videos are 100 times Better than the slides I got from my professor. Clear and Easy to apply. Thank you

  21. Lash LaRue July 9, 2019 at 9:07 pm - Reply

    I'm giving a thumbs down. The pedagogical method is succinct, but the oral communication is wooden, odd, mechanical, off-putting. Android is a mobile operating system, not an optimal mode of human-to-human communication…

  22. Deluge.Space July 9, 2019 at 9:07 pm - Reply

    This is hilarious and great.

  23. erick shuffer July 9, 2019 at 9:07 pm - Reply

    I love you Socratica

  24. Avinash Choudhary July 9, 2019 at 9:07 pm - Reply

    Awesome. I was learning at Coursera applied data science with python. And had doubts in maps and lambda. Came across your video. Very creative and also very nice explanation with real life example. Excellent. Please make more playlists. Thank you so much

  25. Deep Panchal July 9, 2019 at 9:07 pm - Reply

    Reduce might help to generate Fibonacci Sequnace.

  26. Piotr Zaremba July 9, 2019 at 9:07 pm - Reply

    good vid, was very helpful for me

  27. Diachron July 9, 2019 at 9:07 pm - Reply

    This series is nothing short of phenomenal. Smart, funny, precise, and sexy. I could go, but I hope YOU go on making them. Inspired.

  28. Orkhan Ahmadov July 9, 2019 at 9:07 pm - Reply

    fuck java its enough i am coming python

Leave A Comment

*