4 ms·
Your example is not necessarily contrived, but it is not very representative, either. Throw in a couple of proper lambdas in there, and suddenly python won't lo
by tincholio 8y ago
Your example is not necessarily contrived, but it is not very representative, either. Throw in a couple of proper lambdas in there, and suddenly python won't look as nice.
- m463 8y agoI do stuff like this all the time: mysorted = sorted(mydict, key=lambda t: t['Price']) but generally I write out functions in python.