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 Наука
You are tons better than my university professor, thanks for this!
😂😂😂 ok so we all have this problem in university
Very well explained. Only now I understand the use of Lambda. Thanks Joe!!
This really helped clear up my confusion with lambda functions in python thanks 👍
Thanks, Joe. This is a great tutorial by all standards.
I always look forward to your videos! Thank you.
Thanks for this video, you did a great work at explaining the lambda functions and the examples are quite practical too. Thank you!
Explicitly explained, you saved my day Sir , thank you 🙏
Excellent tutorial. Very well explained.Many thanks for sharing.
Great tutorial and explanations are all fantastic! Liked and subscribed.
Great explanation for lambda functions in Python thank you!
Great Examples Joe. This helped a lot
This is exactly what i was looking for, nice Tutorial.
Great tutorial. Thanks! :D
Great explanation! Thanks Joe!
Thank you so much. I followed your and found it is very interesting. I like the one which can print out the present time.
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) :)
Thank you very good video. regards from Bolivia.
Great video. Subscribed. thanks 😊
very clear explanation, thanks.
Good explanation. THanks
Nice video!! Thank you.
Pretty cool, thanks!
Very good, thank you for sharing.
nicely explained, thanks
Thank You!
What program is used in this video? Looks like a really good tool to see how minor edits in code impact the result
It’s Jupyter. Very cool browser based Python platform.
thanks bro
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.
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!
Amazing one!
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)
Great job James! Can you please do one video on comprehensions
I already did. Search for Joe James Python list comprehensions
@@oggiai thanks James and have a look at this video
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
I think what you have looks perfectly fine.
@@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
@@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
good stuff
thanx
Hi james
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
If you want George Lucas to teach you Python, give this a watch at 1.5x speed.
I'm sorry, but I cringed when I heard you pronounce "tuple" as "tupple".
Yep, that’s how my Python professor always said it, and it stuck with me
he's pronouncing it correctly. google "pronounce tuple"
There is not one definite pronunciation of the word. I heard people say "toople" and "tupple."