So I want to copy all keys from one dictionary into another, and initialize it with an empty list:
filtered_result = {}
for key in result.keys():
filtered_result[key] = []
So I tried a more elegant way to do the same:
filtered_result = {}
filtered_result.fromkeys(result.keys(), [])
But the second way doesn't seem to work. What am I doing wrong?