title: Adding double quotes to a variable when creating a csv file in python
body: <pre><code>    DudeNumber = 12    
      with open('innovators.csv', 'w', newline='') as file:
      writer = csv.writer(file,quotechar = &quot;'&quot;)
      writer.writerow([&quot;SN&quot;, &quot;Name&quot;, &quot;Contribution&quot;])
      writer.writerow([1, &quot;Linus Torvalds&quot;, DudeNumber ])
  </code></pre>
  <p>Output:</p>
  <pre><code>Linus Torvalds, 12
  </code></pre>
  <p>Desired output:</p>
  <pre><code>Linus Torvalds, &quot;12&quot;
  </code></pre>
  <p>DudeNumber wont always be a number, how do I make so I'm able to add quotes to the variable. Tried changing the quotechar but that didn't works. Not too sure on what to do. Using python 3 on Visual Studio Code</p>