0 out of 464 challenges solved
Write a function `convert_list_dictionary(l1, l2, l3)` that takes three lists as input and returns a list of nested dictionaries. Each element in the resulting list should be a dictionary where the key is an element from the first list, the value is another dictionary with a key from the second list and a value from the third list.
#### Example Usage
```python [main.nopy]
l1 = ["S001", "S002", "S003", "S004"]
l2 = ["Adina Park", "Leyton Marsh", "Duncan Boyle", "Saim Richards"]
l3 = [85, 98, 89, 92]
result = convert_list_dictionary(l1, l2, l3)
print(result)
# Output: [{'S001': {'Adina Park': 85}}, {'S002': {'Leyton Marsh': 98}}, {'S003': {'Duncan Boyle': 89}}, {'S004': {'Saim Richards': 92}}]
```def convert_list_dictionary(l1, l2, l3):
"""
Convert three lists into a list of nested dictionaries.
Args:
l1 (list): List of keys for the outer dictionary.
l2 (list): List of keys for the inner dictionary.
l3 (list): List of values for the inner dictionary.
Returns:
list: A list of nested dictionaries.
"""
# Implement the function logic here
pass