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.
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)
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
@@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
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!
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
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.
Explicitly explained, you saved my day Sir , 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!
very clear explanation, thanks.
Great explanation for lambda functions in Python thank you!
Thank you very good video. regards from Bolivia.
I always look forward to your videos! Thank you.
This is exactly what i was looking for, nice Tutorial.
Very good, thank you for sharing.
Thank you so much. I followed your and found it is very interesting. I like the one which can print out the present time.
Great Examples Joe. This helped a lot
Great tutorial and explanations are all fantastic! Liked and subscribed.
Great video. Subscribed. thanks 😊
Excellent tutorial. Very well explained.Many thanks for sharing.
Great explanation! Thanks Joe!
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.
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.
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)
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) :)
Pretty cool, thanks!
Good explanation. THanks
Great tutorial. Thanks! :D
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
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!
nicely explained, thanks
Nice video!! Thank you.
Thank You!
thanks bro
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
good stuff
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
thanx
Hi james
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."