title: Retaining order while using Python's set difference
body: <p>I'm doing a set difference operation in Python:</p>
  
  <pre><code>x = [1, 5, 3, 4]
  y = [3]
  
  result = list(set(x) - set(y))
  print(result)
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>[1, 4, 5]
  </code></pre>
  
  <p>As you can see, the order of the list elements has changed. How can I retain the list <code>x</code> in original format?</p>