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.
Examples
["draft", "completed"], 0 # should return {"draft": 0, "completed: 0}
def populate_dict(keys, default):
pass
def populate_dict(keys, default):
return {i:default for i in keys}
def populate_dict(keys, default):
return dict.fromkeys(keys, default)