title: Retrieve Python variable in JavaScript
body: <p>Is there some way I can retrieve a variable that was created using a Python script and use it in a JavaScript script?</p>
  
  <p>For example, I parse an XML using Python to give me an int:</p>
  
  <pre><code>parse code parse code parse code
  i = 3
  </code></pre>
  
  <p>Then in my JavaScript, I can use that variable "i" for some function:</p>
  
  <pre><code>code for my function
  r = 30 / i 
  </code></pre>
  
  <p>Then the r value is equal to 10</p>