title: Understanding string generation of double vs single quotes
body: <p>I'm trying to understand why sometimes double quotes are being generated vs single quotes for my list creation function. I have a function that I've used on multiple text files and normally the output is a list with single quotes, but now double quotes are generated (when I need single).</p>
  <p>Would someone be able to help me understand why double quotes might be generated here and/or a way to just force the single quotes?</p>
  <pre><code>for below structure is :
  string_text is str
  text_list is list
  list_text is list
  </code></pre>
  <pre><code>
  def view(string_text):
     text_list = []
     for t in list_text:
         text_list.append(string_text + &quot;&quot;&quot;   more text &quot;&quot;&quot; + t + 
                          &quot;&quot;&quot; more text &quot;&quot;&quot;)
     return text_list
  text_list = view(string_text)
  </code></pre>
  <p>The append is specific to my use case, but you get the idea. Double quotes are generated for text_list.</p>
  <pre><code>list_text sample = ['a','b','c']
  </code></pre>