filbert
filbert copied to clipboard
Optional key argument when using max
def get_highest_value_coin(coins):
return max(coins, key = lambda c: c.bountyGold)
https://docs.python.org/3.4/library/functions.html#max
We don't support lambda yet, #4