title: Removing duplicates within the values of a dictionary, lowercase all the values and remove whitespaces
body: <p>So given below is my dict and I want to <strong>get rid of all the duplicate values including several unnecessary commas and want to make every value as a lowercase</strong>.
  On the other hand, I <strong>tried converting entire values to lists and performing split and strip functions</strong> but it was not useful. And another thing I tried was <strong>converting the entire dict to set</strong>.
  For me, it also failed.</p>
  <p><code>dict =  { &quot;Key1&quot;: &quot;, , copyright, trademarks, service marks, , , interactions, configuration, libraries, dll, variables, , data, variable, variables, tlheader, variable family, variable aliases, , configuration, libraries, dll, variables, configuration, libraries, dll, variables, , configuration, libraries, dll, variables, configuration, libraries, dll, variables, , , , , patterns, ,  SWAP&quot;, &quot;Key2&quot;: &quot; AWI, workflow manager, manager, workflow, parameters, manager, workflow, parameters, AWI, , &quot;, &quot;Key3&quot;: &quot;AWI, workflow manager, , AWI, workflow manager, AWI, workflow manager, workflow parameters, template, duplicate, AWI, workflow manager, computed values, , , , workflow engine, , , , , , &quot;, &quot;Key4&quot;: &quot;, , , , , , alarm, , &quot;, }</code></p>
  <p>Some of the things I tried were :</p>
  <pre><code>result = {}
  for key,value in dict.items():
    if value not in result.values():
      result[key] = value
  print(result)
  </code></pre>
  <p>And,</p>
  <pre><code>string =&quot;, , , , , , Python, scripts, editor, Python, scripts, editor, , , , , , , , , Python, debugger, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , logview, , , , , , , lithology brush, patterns manager, lithology brush, patterns manager, , , , , , , single well, line plot, line-plot, , , histogram, distribution, statistics, quantile, single well, , multi-well Viewers, variables, filters, multiwell, , , , , , , , , Schmidt, Wulff, polar plot, rose, vector mean, pole, plane, line,&quot;
  result = [x.strip() for x in string.split(',')]
  s = set(result)
  print(s,end=&quot; &quot;)
  </code></pre>
  <p>The output for this was :</p>
  <pre><code>  {'', 'strike histogram', 'editor', 'rose', 'multi-well Viewers', 'variables', 'azimuth', 'contouring', 'patterns manager', 'great circle', 'line plot', 'pole', 'lower hemisphere', 'single well', 'azimuth mirror', 'logview', 'lithology brush', 'strike', 'fracture clusters', 'plane', 'rose diagram', 'line-plot', 'Python', 'polar plot', 'quantile'} 
  </code></pre>
  <p>Here duplicates, whitespace and unnecessary commas are removed. But I need this to be done on the entire dict which I have mentioned above.</p>
  <p>Please help me out.
  Thankyou.</p>