Complete the method that takes a sequence of objects with two keys each: country or state, and capital. Keys may be symbols or strings.
The method should return an array of sentences declaring the state or country and its capital.
## Examples
```python
[{'state': 'Maine', 'capital': 'Augusta'}] --> ["The capital of Maine is Augusta"]
[{'country' : 'Spain', 'capital' : 'Madrid'}] --> ["The capital of Spain is Madrid"]
[{"state" : 'Maine', 'capital': 'Augusta'}, {'country': 'Spain', "capital" : "Madrid"}] --> ["The capital of Maine is Augusta", "The capital of Spain is Madrid"]
```
def capital(capitals): 
    list1 = []
    for i in capitals:
        a = list(i.values())
        print(a)
        list1.append("The capital of " + a[0] + " is " + a[1])
    return list1

def capital(capitals): 
    list1 = []
    for i in capitals:
        a = list(i.values())
        print(a)
        list1.append("The capital of " + a[0] + " is " + a[1])
    return list1
