I thought about it, but the story of this problem is about two friends with these names. This makes it optional to refer to a name through an object or by simply writing it. Thank you for your suggestion.
Basically lambda is just a plpaceholder for a variable which can also take more values/parameters. With those you can give them also functionalities. It is very similar to a basic function. But for flexing-reasons you will see many people using it here since you can finish most codes in just one line. But also you may need lambdas within functions for some tasks.
A lambda function in Python is a special kind of function that does not have a name. It is an anonymous function, which means you don't give it a name when you define it. It also has no parameters, and it always returns a single value.
The main difference between a classic function and a lambda function is that a classic function is named, while a lambda function is anonymous. This means that when you use a classic function, you can refer to it by name, and it is easier to read and understand. On the other hand, a lambda function is more concise and can sometimes be easier to write.
I approved your kumite and corrected the task description. Thank you for participating in the creation of the kata.
Added a kumite with this improvement
I thought about it, but the story of this problem is about two friends with these names. This makes it optional to refer to a name through an object or by simply writing it. Thank you for your suggestion.
Suggestion: random player names in random tests instead of fixed ones.
Kumite with the improvement
thanks everyone! now i understand a little bit more :-) i practice a little bit now 😉
every explication its very good, really thanks
Basically lambda is just a plpaceholder for a variable which can also take more values/parameters. With those you can give them also functionalities. It is very similar to a basic function. But for flexing-reasons you will see many people using it here since you can finish most codes in just one line. But also you may need lambdas within functions for some tasks.
I think that's not true.
A lambda function in Python is a special kind of function that does not have a name. It is an anonymous function, which means you don't give it a name when you define it. It also has no parameters, and it always returns a single value.
The main difference between a classic function and a lambda function is that a classic function is named, while a lambda function is anonymous. This means that when you use a classic function, you can refer to it by name, and it is easier to read and understand. On the other hand, a lambda function is more concise and can sometimes be easier to write.
i'm begining in python, i didn't undestand this ,
what is the difference between clasic fonction and lambda ?
i have looked documentation but i'm in a mist
"1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1" equals 0
What-
exactly)
Last part is just "dust in eyes".... And first one is lambda expression...
OH MY GOD!VERY WONDERFUL KATA!!!LES GO!GOT PLEASURE OF THE SOLUTION :)
very simple ;)
Loading more items...