top_rated(restaurants) where each restaurant is a dict with 'name' and 'rating'. Return the name of the highest-rated one using max with a lambda key.top_rated([{'name': 'A2B', 'rating': 4.4}, {'name': 'Leo', 'rating': 4.8}])'Leo'
Leo has the higher rating.
max picks by the key function's value.
Then read ['name'] off the winner.