Python LAMBDA Functions Explained

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • This tutorial on Python lambda functions covers filter, sort, an explanation of if statements, lambda expressions and how they can be used in code such as filter or sort functions explained.
    RELATED VIDEOS:
    ► Lambda Functions: • Python LAMBDA Function...
    ► Lambda, Map, Filter, Reduce: • Python: Lambda, Map, F...
    ► Unpacking Variables: • Unpacking Variables in...
    ► Iterating Lists: • Python ENUMERATE | Lis...
    ► Generators: • Python GENERATORS & us...
    ► Progress Bar: • Python: Progress Bar w...
    ► Datetime & Timestamp: • Python: Dates, Times &...
    ► HTTP Requests & Web APIs: • Python: Using Web APIs...
    ► List Comprehensions: • Python: List Comprehen...
    ► Set Comprehensions: • Python Set COMPREHENSI...
    ► All about Strings: • Python Strings Tutorial
    ► String Format: • Python String FORMATti...
    ► Recursion: • Python: RECURSION Expl...
    ► Exception Handling: • Python: Exception Hand...
    ► Debugger: • Python: Debugger
    ► Twitter: / joejamesusa
    ► Get Jupyter notebook github.com/joeyajames/Python/...
    ► Subscribe: bit.ly/like-this-channel
    #Python
  • НаукаНаука

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

  • @davinchow1536
    @davinchow1536 3 года назад +11

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

    • @aloneogist1440
      @aloneogist1440 Год назад +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.

  • @edcoughlan5742
    @edcoughlan5742 5 лет назад +3

    I always look forward to your videos! 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!

  • @bruceintrepid3192
    @bruceintrepid3192 2 года назад +1

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

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

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

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

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

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

    Great explanation for lambda functions in Python thank you!

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

    Great Examples Joe. This helped a lot

  • @pkavenger9990
    @pkavenger9990 3 года назад

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

  • @riskzerobeatz
    @riskzerobeatz 5 лет назад +2

    Great tutorial. Thanks! :D

  • @shaunpx1
    @shaunpx1 2 года назад

    Great explanation! Thanks Joe!

  • @user-qo9nh5fc7c
    @user-qo9nh5fc7c 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.

  • @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) :)

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

    Thank you very good video. regards from Bolivia.

  • @supremereader7614
    @supremereader7614 2 года назад +1

    Great video. Subscribed. thanks 😊

  • @assafbenishay8924
    @assafbenishay8924 Год назад +1

    very clear explanation, thanks.

  • @ananthaganiga3048
    @ananthaganiga3048 5 лет назад +2

    Good explanation. THanks

  • @Thodapod
    @Thodapod 5 лет назад +1

    Nice video!! Thank you.

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

    Pretty cool, thanks!

  • @english900videotutorialcou5
    @english900videotutorialcou5 2 года назад +1

    Very good, thank you for sharing.

  • @smcgrady3537
    @smcgrady3537 3 года назад

    nicely explained, thanks

  • @akashtribhuvan8124
    @akashtribhuvan8124 Месяц назад

    Thank You!

  • @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.

  • @R3Dwazhere
    @R3Dwazhere Год назад +1

    thanks bro

  • @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.

  • @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!

  • @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)

  • @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

  • @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

  • @kamillapaj8694
    @kamillapaj8694 3 года назад

    good stuff

  • @SuperBhavanishankar
    @SuperBhavanishankar 3 года назад

    thanx

  • @sivakrishna4396
    @sivakrishna4396 5 лет назад +1

    Hi james

  • @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

  • @HenryNewcomer
    @HenryNewcomer 3 года назад

    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."