Python LAMBDA Functions Explained

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

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

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

    You are tons better than my university professor, thanks for this!

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

      😂😂😂 ok so we all have this problem in university

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

    Very well explained. Only now I understand the use of Lambda. Thanks Joe!!

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

    This really helped clear up my confusion with lambda functions in python thanks 👍

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

    Thanks, Joe. This is a great tutorial by all standards.

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

    Explicitly explained, you saved my day Sir , thank you 🙏

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

    Thanks for this video, you did a great work at explaining the lambda functions and the examples are quite practical too. Thank you!

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

    very clear explanation, thanks.

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

    Great explanation for lambda functions in Python thank you!

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

    Thank you very good video. regards from Bolivia.

  • @edcoughlan5742
    @edcoughlan5742 5 ปีที่แล้ว +3

    I always look forward to your videos! Thank you.

  • @pkavenger9990
    @pkavenger9990 3 ปีที่แล้ว

    This is exactly what i was looking for, nice Tutorial.

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

    Very good, thank you for sharing.

  • @이대호-b1f
    @이대호-b1f 3 ปีที่แล้ว +1

    Thank you so much. I followed your and found it is very interesting. I like the one which can print out the present time.

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

    Great Examples Joe. This helped a lot

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

    Great tutorial and explanations are all fantastic! Liked and subscribed.

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

    Great video. Subscribed. thanks 😊

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

    Excellent tutorial. Very well explained.Many thanks for sharing.

  • @shaunpx1
    @shaunpx1 3 ปีที่แล้ว

    Great explanation! Thanks Joe!

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

    The third video on Lambda I've watched. I understand how to use it. I still don't know WHY you'd want to. There seems to be other, easier ways. I'm obviously missing something.

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

    What program is used in this video? Looks like a really good tool to see how minor edits in code impact the result

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

      It’s Jupyter. Very cool browser based Python platform.

  • @dimitriosdesmos4699
    @dimitriosdesmos4699 2 ปีที่แล้ว

    hello, could you please explain this lambda value below because it is driving me crazy
    tk.Button(window, text=text, width=width,
    command=lambda value=text: select(entry, value),
    padx=3, pady=3, bd=12, bg="black", fg="white"
    ).grid(row=y, column=x, columnspan=columnspan)

  • @tymothylim6550
    @tymothylim6550 3 ปีที่แล้ว

    Thank you very much for this video! It is very well done and I really like the various examples (including the very extreme one haha) :)

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

    Pretty cool, thanks!

  • @ananthaganiga3048
    @ananthaganiga3048 5 ปีที่แล้ว +2

    Good explanation. THanks

  • @riskzerobeatz
    @riskzerobeatz 5 ปีที่แล้ว +2

    Great tutorial. Thanks! :D

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

    i need help with something.How can i make this lamda to a normal no def function code
    lista =["Name1 10","Name2 5","Name3 8","Name4 9"]
    print(sorted(lista , key=lambda x:int(x.split()[1]),reverse=True))
    what i have here is some names and im sorting from grade.Ive found this online but i just wanna make it simple

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

      I think what you have looks perfectly fine.

    • @DarkSpeedKiller
      @DarkSpeedKiller 4 ปีที่แล้ว

      @@oggiai yeah i know but since i dont understand how it works.I cant use it sadly.So i was looking for a simplier version of it

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

      @@DarkSpeedKiller It just prints a sorted version of lista, using as the sort key the second item (numbers 10, 5, 8, 9), and sorted descending. split breaks the name and number apart, then [1] gets the number only, to use as the sort key.
      Alternatively, you could sort the list first using: lista = sorted(lista , key=lambda x:int(x.split()[1]),reverse=True)
      then print lista

  • @senelburak
    @senelburak 5 ปีที่แล้ว

    Lambdas were a nightmare for me but now they are delicate dreams because they're still kind of vague. I'm gonna need to watch this video a few more times so I can wrap my head around it. Can you share the file in the video?
    Edit: It was in the description, thank you!

  • @smcgrady3537
    @smcgrady3537 3 ปีที่แล้ว

    nicely explained, thanks

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

    Nice video!! Thank you.

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

    Thank You!

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

    thanks bro

  • @ramvithanala7674
    @ramvithanala7674 5 ปีที่แล้ว

    Great job James! Can you please do one video on comprehensions

    • @oggiai
      @oggiai  5 ปีที่แล้ว

      I already did. Search for Joe James Python list comprehensions

    • @ramvithanala7674
      @ramvithanala7674 5 ปีที่แล้ว

      @@oggiai thanks James and have a look at this video

  • @kamillapaj8694
    @kamillapaj8694 3 ปีที่แล้ว

    good stuff

  • @chaitusathvika2717
    @chaitusathvika2717 4 ปีที่แล้ว

    Thank you so much for nice videos.
    Need help in understanding usage of split in another split().
    wordb4 = lambda s,w:s.split()[s.split().index(w)-1]if w in s else None

  • @SuperBhavanishankar
    @SuperBhavanishankar 3 ปีที่แล้ว

    thanx

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

    Hi james

  • @HenryNewcomer
    @HenryNewcomer 4 ปีที่แล้ว

    If you want George Lucas to teach you Python, give this a watch at 1.5x speed.

  • @DanielJohnNicholson
    @DanielJohnNicholson 5 ปีที่แล้ว

    I'm sorry, but I cringed when I heard you pronounce "tuple" as "tupple".

    • @oggiai
      @oggiai  5 ปีที่แล้ว +2

      Yep, that’s how my Python professor always said it, and it stuck with me

    • @seanfitz81
      @seanfitz81 5 ปีที่แล้ว +2

      he's pronouncing it correctly. google "pronounce tuple"

    • @senelburak
      @senelburak 5 ปีที่แล้ว +2

      There is not one definite pronunciation of the word. I heard people say "toople" and "tupple."