title: How to remove duplicate from list of values
body: <p>I have list of dictionary</p>
  <pre><code>dictio =[{'key1':'value1'}, {'key1':'value2'}, {'key1':'value1'}, {'key2':'value4'}, {'key2':'value5'}]
  from collections import defaultdict
  
  result = defaultdict(list)
  for subd in dictio:
      for k, v in subd.items():
          result[k].append(v)
  result
  </code></pre>
  <p>My output</p>
  <p>While appending 'value1' appending to 'key1' which is not required</p>
  <pre><code>defaultdict(list,
              {'key1': ['value1', 'value2', 'value1'],
               'key2': ['value4', 'value5']})
  </code></pre>
  <p>My Expected</p>
  <pre><code>`defaultdict(list,
                  {'key1': ['value1', 'value2'],
                   'key2': ['value4', 'value5']})`
  </code></pre>