title: How to call a list in a string?
body: <p>I am a new to python programming and trying to understand how it works while editing a string file. I wanted to <em>call</em> either variables or lists or tuple in a string and solve the values and update the string file. Here is a simple example</p>
  <pre><code>
  t_list = ['c','d','e']
  
  
  doc = '''
   domain ()
   :types a b c - objects
          f&quot;{t_list}&quot; - items
  '''
  doc_up = doc
  </code></pre>
  <p>I wanted my <code>doc_up</code> to be updated with values of list <code>t_list</code>. I referred to <a href="https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep498" rel="nofollow noreferrer">PEP 498: Formatted string literals</a> but it doesn't work.</p>
  <p>My output is like this:</p>
  <pre><code>'\n domain ()\n :types a b c - objects\n        f&quot;{t_list}&quot; - items\n'
  </code></pre>
  <p>I want my output to be like this:</p>
  <pre><code> domain ()
   :types a b c - objects
          c d e - items
  </code></pre>