Unwanted quotations marks in python terminal
<p>I am using Geany to code and Ubuntu 16.04 as my OS.
when I enter this code</p>

<pre><code>print("Result:",a+b)
</code></pre>

<p>It gives it's output as <code>('Result:', a+b)</code>.</p>

<p>In <strong>python 2</strong>:</p>

<pre><code>print("Result:",a+b) --&gt; # ('Result:', 6)
</code></pre>

<p>parens are no needed, because otherwise we are printing a tuple of two elements: string <code>'Result'</code> and an integer <code>6</code>.</p>

<p>In <strong>python 3</strong>:</p>

<pre><code>print("Result:",a+b) --&gt; # Result: 6
</code></pre>

<p>parens are needed, just because print is a function instead of a statement in python 3.</p>

<p>So to do it the same in python 2 which is in python 3, you have to do this:</p>

<pre><code>print "Result:", a+b --&gt; # Result: 6
</code></pre>

python