title: How to replace single quotes that appear when using split() function
body: <p>I have a string, <code>list1</code> that I'm converting to a list in order to compare it with another list, <code>list2</code>, to find common elements.</p>
  
  <p>The following code works, but I need to replace <code>'</code> with <code>"</code> in the final output, since it will be used in TOML front matter.</p>
  
  <pre><code>list1 = "a b c"
  list1 = list1.split(" ")
  
  print list1
  &gt;&gt;&gt; ['a','b','c']
  
  list2 = ["b"]
  
  print list(set(list1).intersection(list2))
  &gt;&gt;&gt; ['b']
  
  **I need ["b"]**
  </code></pre>
  
  <p>New to python. I've tried using replace() and searched around, but can't find a way to do so. Thanks in advance.</p>
  
  <p>I'm using Python 2.7.</p>