Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: use a lambda function to sort the data list, then slice it to limit number of TOP items solution in Speedy category for Bigger Price by leggewie
def bigger_price(limit: int, data: list) -> list:
"""
TOP most expensive goods
"""
return sorted(data, key=lambda x: x['price'], reverse=True)[:limit]
May 24, 2021