What Are Python LAMBDA Functions and How to Use Them!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

ความคิดเห็น • 16

  • @Aturdiendo
    @Aturdiendo ปีที่แล้ว +4

    I love how you explain, you're amazin! Congratulations!

    • @lemastertech
      @lemastertech  ปีที่แล้ว

      Thank you very much and thanks for watching!

  • @RisetotheEquation
    @RisetotheEquation ปีที่แล้ว +4

    Embedding lambda inside a function was sneaky!

    • @lemastertech
      @lemastertech  ปีที่แล้ว

      yeah but sooooo smooth :D

    • @giovan7482
      @giovan7482 6 วันที่ผ่านมา

      isn't that just an higher order function?

  • @NoNamenimmer
    @NoNamenimmer หลายเดือนก่อน +1

    I’m beginner 5:39 in this moment it’s look like Class ,I showed you first time my English very bad but i can understand you very good thank you, for your English very easy 🙃

    • @NoNamenimmer
      @NoNamenimmer หลายเดือนก่อน

      class Power:
      def __init__(self, n):
      self.n = n
      def calculate(self, a):
      return a ** self.n
      squared = Power(2)
      cubed = Power(3)
      quadded = Power(4)
      print(squared.calculate(5)) # 25
      print(cubed.calculate(5)) # 125
      print(quadded.calculate(5)) # 625

    • @lemastertech
      @lemastertech  หลายเดือนก่อน

      Thank you for watching!!

  • @flioink
    @flioink ปีที่แล้ว +1

    Anonymous functions with a fancy name😎
    I see - the lambdas can hold a state, like a function object.

    • @lemastertech
      @lemastertech  ปีที่แล้ว +1

      Haha exactly! Yeah they're very interesting tools and I honestly don't use them as often as I probably should but good to know about 😎

  • @DataPotato
    @DataPotato 4 หลายเดือนก่อน +1

    I watched the first half of the video and I'm like, oh so lambdas are super dumb, and then I watched the second half and I'm like, woah this looks awesome
    ...idk why i felt the need to comment that

    • @lemastertech
      @lemastertech  4 หลายเดือนก่อน +1

      Haha well thank you for the comment I have had both those thoughts myself as well lol

  • @TeriChyou21
    @TeriChyou21 ปีที่แล้ว +1

    Hi sir, I learned some pygame techniques with your previous videos. Now, I am currently doing research about Machine Learning and AI stuffs. I would like to ask if you would have interest in making voice model from a pack of sound files? For example, I prepare 1000 lores of voice files and put it into the model and result out a voice model that can do the text to audio work.

    • @lemastertech
      @lemastertech  ปีที่แล้ว +1

      Hi! That is interesting but I don’t do much with AI or machine learning today! I know the tensor flow and PyTorch modules are very useful for that content but there are other creators in TH-cam doing a lot of AI work!

  • @willwillcode7568
    @willwillcode7568 ปีที่แล้ว +1

    Complex but still useful I guess. Well now I am sort of familiar with it

    • @lemastertech
      @lemastertech  ปีที่แล้ว

      Its a great thing to get introduced to even if you don't need to use it a ton!