← Code LabPython0/50 solved · 0%
Functions · easy

14. Lambda and sorted

Sort with a custom key.

Write `sort_by_amount(txs)` that returns `txs` sorted ascending by the `"amount"` key using `sorted` with a `lambda`.
Required in your answer: sorted(lambda