0 out of 464 challenges solved
Write a Python function `create_empty_dicts(n)` that takes an integer `n` as input and returns a list containing `n` empty dictionaries.
#### Example Usage
```python [main.nopy]
print(create_empty_dicts(3)) # Output: [{}, {}, {}]
print(create_empty_dicts(0)) # Output: []
print(create_empty_dicts(5)) # Output: [{}, {}, {}, {}, {}]
```
#### Constraints
- The input `n` will always be a non-negative integer.
- The function should return an empty list if `n` is 0.def create_empty_dicts(n):
"""
Create a list of n empty dictionaries.
Args:
n (int): The number of empty dictionaries to create.
Returns:
list: A list containing n empty dictionaries.
"""
# Your code here
pass