title: String inside a string
body: <pre><code>BASE_URL = 'http://foobar.com?foo=%s'
  
  variable = 'bar'
  
  final_url = BASE_URL % (variable)
  </code></pre>
  
  <p>I get this <code>'http://foobar.com?foo=bar'</code> # It ignores the inside string.</p>
  
  <p>But i wanted something like this <code>'http://foobar.com?foo='bar''</code></p>
  
  <p>Thanks for the answer.</p>
  
  <p>Can you help me out with almost the same problem:</p>
  
  <pre><code>lst = ['foo', 'bar', 'foo bar']
  
  [str(l) for l in lst if ' ' in l] 
  </code></pre>
  
  <p>I get <code>['foo bar']</code> but i wanted it like <code>[''foo bar'']</code></p>
  
  <p>Thanks in advance.</p>