Python Lambda Map Filter Explained all together in ONE video

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 9

  • @jimshapedcoding
    @jimshapedcoding  4 года назад +7

    I know I focused more on filter than the map, but the filter is just a function that I'm always more hyped to use it lol.
    So if you feel doubtful why we need the map(), definitely consider reading this comment ;)
    Hi everyone I hope everything is well,
    In this video, I talk about the lambda, map, filter functions altogether.
    If you have any doubts after this video please make sure to comment out here.
    A short brief:
    Lambda - They are expressions that allow you to write functions much shorter and easier.
    Map - Allows executing some functionality on iterables, could be a great idea to use when you want to apply calculation for a list of numbers.
    Filter - Functions exist to filter the objects you want from a provided iterable. Could be awesome to returning some numbers that are above 50 from a given list of floats/integers.
    See my website for all the examples and access it from the link in my description!

  • @oakphotos7294
    @oakphotos7294 4 года назад +1

    I knew of lambda before but not how or why to use but now i know i will use it. map and filter very useful!

  •  4 года назад

    אחלה הסבר , כל הכבוד תעשה עוד סרטונים ...אשמח אם תעשה גם מדריך שלם על
    django

  • @Gary-tp9dk
    @Gary-tp9dk 3 года назад

    Thanks Jim, Next video I'm gonna learn from is how to structure python projects
    On your channel.

    • @jimshapedcoding
      @jimshapedcoding  3 года назад +1

      Cool Gary, thanks! Feel free to share it with your friends :)

  • @oakphotos7294
    @oakphotos7294 4 года назад +1

    very good!

  • @altanalpay5249
    @altanalpay5249 4 года назад

    is the map function faster than the for loop?

    • @jimshapedcoding
      @jimshapedcoding  4 года назад +1

      Interesting question, but I don't think the decision of what to use should be about asking what is faster. Besides, you want to choose between the two by thinking which one will be more readable for other developers and for you.
      I read all the answers here: I really suggest you to have a look ;)
      stackoverflow.com/questions/1975250/when-should-i-use-a-map-instead-of-a-for-loop