title: How can I write a Python string variable in a Markdown heading?
body: <p>I'm working on Jupyter Notebooks and I'd like to write the value of a Python string variable into a Markdown heading. I'm well aware that <a href="https://stackoverflow.com/questions/52812231/print-variable-in-jupyter-notebook-markdown-cell-python">one can write</a>, in a Markdown cell,</p>
  
  <pre class="lang-py prettyprint-override"><code># Python
  a = 'hello'
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>In a markdown cell, a is {{a}}
  </code></pre>
  
  <p>and this works for me, but I'm trying to do something like</p>
  
  <pre class="lang-html prettyprint-override"><code># This is a heading with {{a}} in it
  </code></pre>
  
  <p>But the last attempt didn't work. I googled a little bit, but I couldn't find anything. Any help will be appreciated. Thanks in advance!</p>