Given dict with list values, flatten in key-sorted order. Example: {"b":[3],"a":[1,2]} => [1,2,3]
Implement this function:
def flatten_dict_values(d: dict) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: d.
Input
{'b': [3], 'a': [1, 2]}
Output
[1, 2, 3]