- qspec. dict_to_list ( a )[source]
-
Split a dictionary into a list of its keys and a list of its values.
- Parameters:
-
- adict
A dictionary.
- Returns:
-
- (keys, vals)tuple[list, list]
Two lists with the keys and values of
a, respectively. The lists are in the same order, however, they are not sorted.