Complete the function so that it takes an array of keys and a default value and returns a hash (Ruby) / dictionary (Python) with all keys set to the default value. 

## Example

```python
["draft", "completed"], 0   # should return {"draft": 0, "completed: 0}
```

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Data structures

Starter code: def populate_dict(keys, default):
	

Solutions:
def populate_dict(keys, default):
	return {key: default for key in keys}


populate_dict = dict.fromkeys


def populate_dict(keys, default):
	return dict.fromkeys(keys, default)


def populate_dict(keys, default):
	return {k: default for k in keys}


from itertools import repeat

def populate_dict(keys, default):
	return {k: v for (k, v) in zip(keys, repeat(default))}


from collections import defaultdict

def populate_dict(keys, default):
	return defaultdict.fromkeys(keys, default)


from itertools import zip_longest
populate_dict = lambda keys, default: dict(zip_longest(keys, [default], fillvalue=default))


def populate_dict(keys, default):
	return dict(zip(keys, [default] * len(keys)))


def populate_dict(keys, default):
	o = {}
	for n in keys:
		o[n] = default
	return o


def populate_dict(ks, v):
	return {k: v for k in ks}