We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Yes, I realize it is standard tuple syntax. I guess the correct language would be multiple "expressions". From Glossary > Lambda: "An anonymous inline function consisting of a single expression which is evaluated when the function is called. The syntax to create a lambda function is lambda [arguments]: expression."
My point was that docs.python.org do not make it obvious that multiple expressions can be used. (Or, perhaps a single expression which happens to be a tuple.) Believe me, I scoured the docs for that info; if it is there, my not finding it is not because of lack of effort.
Any advice about where to look when docs.python.org is lacking? (Other than general internet search, e.g., "python key lambda multiple tuple" which did not help either.)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
ginortS
You are viewing a single comment's thread. Return to all comments →
Yes, I realize it is standard tuple syntax. I guess the correct language would be multiple "expressions". From Glossary > Lambda: "An anonymous inline function consisting of a single expression which is evaluated when the function is called. The syntax to create a lambda function is lambda [arguments]: expression."
My point was that docs.python.org do not make it obvious that multiple expressions can be used. (Or, perhaps a single expression which happens to be a tuple.) Believe me, I scoured the docs for that info; if it is there, my not finding it is not because of lack of effort.
Any advice about where to look when docs.python.org is lacking? (Other than general internet search, e.g., "python key lambda multiple tuple" which did not help either.)