- qspec.list_to_dict ( values , keys = None )[source]
-
- Parameters:
-
- valuesarray_like
The values of the dictionary.
- keysarray_like
The keys of the dictionary. If omitted, the keys will be the indices of the values.
- Returns:
-
- outdict
A dictionary with the given 'values' and 'keys'.