Python module runs but shows "Syntax error while detecting tuple" in aptana
<p>I am learning python and when I was running the below code</p>

<pre><code>print("X",end='awesome')
</code></pre>

<p>The code runs but shows the following syntax error</p>

<pre><code>"Syntax error while detecting tuple"
</code></pre>

<p>How I can resolve it?</p>

<p>Aptana is set to use syntax checking for Python 2.x, where <code>print</code> is a statement. It is recognizing this statement as if you were trying to print a tuple, which is what that would be in Python 2.x, and correctly pointing out that you can't have an <code>=</code> sign inside the tuple. But the code is written for Python 3.x, where <code>print</code> is a function call and this syntax is valid.</p>

<p>You need to set Aptana to use the Python 3 grammar. I found <a href="https://pythoncodesnippets.wordpress.com/2015/12/23/how-to-configure-aptana-studio-with-python3-interpreter/" rel="nofollow">this page</a> that shows you how to set up Aptana to use a Python 3.x interpreter (which you probably already have, since the script runs) and syntax.</p>

python aptana