Advanced Python - Lambda Function, Filter and Map #03

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • This is a python tutorial for everyone who already knows the basics!
    Welcome to Advanced free course, where you can further polish your programming in Python on your own! Begin your adventure with Software-Engineering now!
    Advanced Python Course:
    • Advanced Python
    Channel Page:
    / @definitelynoah
    Outro Music:
    / 04-olivaw-reckless
    Outro Music License:
    creativecommons.org/licenses/...
    Timecodes
    00:00 - Intro
    00:05 - What is Lambda
    01:06 - Creating a Lambda
    02:24 - Proper use of Lambda
    03:04 - Passing parameters to a Lambda
    03:33 - Default Parameters
    04:17 - Using functions within a Lambda
    05:04 - Specific Lambda Conditionals
    05:50 - Mapping with Lambda
    06:34 - Filter Function
    07:48 - Filter with Lambda
    08:14 - Outro
    #coding #programming #python #tutorial #course
  • Наука та технологія

КОМЕНТАРІ • 19

  • @BobP-ks1mu
    @BobP-ks1mu Рік тому +2

    Thanks for making this video. Breaking the syntax down and explaining it helps a lot.

  • @analixta9128
    @analixta9128 Рік тому +3

    thanks for the class
    I understood the concepts after looking through hundreds of other videos
    I'm from Brazil, and I've already recommended your playlist to everyone here
    make a tutorial about Pandas and how to start understanding Data Science with Python.
    Thanks

  • @troyke
    @troyke Рік тому +3

    I love your tutorial and style, and the video of yourself in the corner is way cool! One favor could help A LOT of people out there: could you please zoom your IDE's window while you are coding? It would make it easier for us older and vision-impaired coders to see what your are doing!

    • @definitelynoah
      @definitelynoah  Рік тому +1

      I will try to do so!
      Or at least I will keep the font bigger.

  • @charles_1523
    @charles_1523 Рік тому +1

    Thanks for this!

  • @YDV669
    @YDV669 Рік тому +4

    So, if I understand this correctly, lambda functions don't accomplish anything that couldn't be done without them. They merely shorten your source code.

    • @definitelynoah
      @definitelynoah  Рік тому +5

      Basically yes. However it is also more efficient to use as it doesn't store itself in memory.

  • @islammohamedfahmy4831
    @islammohamedfahmy4831 Рік тому +1

    Awesome

  • @MIKIBURGOS
    @MIKIBURGOS Рік тому

    Is there anything at all that lambda allows you to do that an if statement doesn't?

  • @kenhaley4
    @kenhaley4 Рік тому +1

    This code snippet seems very unintuitive.
    (a + b) % 2 and 'odd' or 'even'
    I think most coders would struggle to understand that. Better would be
    'odd' if (a + b) % 2 else 'even'
    It's shorter and more easily understood.

  • @horus4862
    @horus4862 3 місяці тому +1

    Why do I need this? 🤔
    Why not just write a proper function?
    def function():

    • @definitelynoah
      @definitelynoah  3 місяці тому

      Lambas are mostly useful for when you need a function that will only be used once.

  • @kutilkol
    @kutilkol Рік тому +1

    Awesome channel, you will be big :). Do decorators?

  • @mbtr-rtbm
    @mbtr-rtbm Рік тому +1

    hi noah good luck can i have ur insta or telegram?

    • @definitelynoah
      @definitelynoah  Рік тому

      Hi, Sorry I don't really post on either of those.

    • @mbtr-rtbm
      @mbtr-rtbm Рік тому +1

      @@definitelynoah i want to contact with u and know a brief bio

    • @definitelynoah
      @definitelynoah  Рік тому

      If you want to contact me, there is an email address in the 'about' section of my channel.

    • @mbtr-rtbm
      @mbtr-rtbm Рік тому

      @@definitelynoah hi noah i cant find ur email in about