Colour plays an important role in our lifes. Most of us like this colour better then another. User experience specialists believe that certain colours have certain psychological meanings for us.

You are given a 2D array, composed of a colour and its 'common' association in each array element. The function you will write needs to return the colour as 'key' and association as its 'value'.

For example:
```python
var array = [["white", "goodness"], ...] returns [{'white': 'goodness'}, ...]
```

Difficulty: introductory

Starter code:

def colour_association(arr):
	

Solutions:
def colour_association(arr):
    return [{k: v} for k, v in arr]

def colour_association(arr):
    return [{color: assoc} for color, assoc in arr]

def colour_association(arr):
    result = []
    for association in arr:
        colour, value = association
        result.append({colour : value})
    return result

def colour_association(arr):
  r = [{a[0]: a[1]} for a in arr]     
  return r


def colour_association(arr):
    #your code here
    return [{x[0]:x[1]} for x in arr]

colour_association=lambda arr: [{k:v} for k,v in arr]

def colour_association(arr):
    colors = [];
    for color in arr:
        colors.append({color[0]: color[1]});
    return colors;

def colour_association(arr):
    return list({k: v} for k, v in arr)

def colour_association(arr):
    return list([{x[0]:x[1]} for x in arr])

def colour_association(arr):
    array = []
    for pair in arr:
        array.extend([{pair[0] : pair[1]}])
    return array

def colour_association(arr):
    dict1 = []
    for item in arr:
        dicts = {}
        dicts.update({item[0] : item[1]})        
        dict1.append(dicts)
        
    print(dict1)    
    return dict1
        
        
    #your code here


colour_association = lambda lst: [{k: v} for k, v in lst]

colour_association = lambda l: [ {k:v} for k,v in l ]

def colour_association(lst):
    return [{k: v} for k, v in lst]

def colour_association(arr):
    l=[]
    for i in arr:
        d={i[0]:i[1]}
        l.append(d)
    return l

colour_association = lambda array: [{color: meaning} for color, meaning in array]

def colour_association(arr):
    result = []
    for k,v in arr:
        result.append({k:v})
    return result

def colour_association(arr):
    return [{elem[0]: elem[1]} for elem in arr]

colour_association = lambda x: [{p[0]:p[1]} for p in x ]

def colour_association(arr):
    lst = []
    for i in arr:
        lst += [{i[0]:i[1]}]
    return lst