title: Printing elements of a set in python
body: <p>I want to print the elements of the set consecutively, so I wrote the following code:</p>
  
  <pre><code>s='dmfgd'
  print(set(s))
  </code></pre>
  
  <p>However, this code shows the output as:</p>
  
  <pre><code>set(['m', 'd', 'g', 'f'])
  </code></pre>
  
  <p>but, I want output like:</p>
  
  <pre><code>set(['d','m','f','g'])
  </code></pre>
  
  <p>Any help will be appreciated.</p>