Executing python code
<p>I am starting fresh with python and trying to execute a code from the python command window. I wrote a file on Desktop\practice\new.py and lunched the python command window. </p>

<p>when I type </p>

<pre><code>C:\users\user\Desktop\practice\new.py
</code></pre>

<p>it gives me </p>

<pre><code>SyntaxError: invalid syntax 
</code></pre>

<p>Executing from CMD worked, but from python window didnt!</p>

<p>Any help?</p>

<p><strong>EDIT2:</strong> when i put the compiled code in the directory and use the 'import' it runs, but when the compiled is not in the same directory it won't execute</p>

<p><strong>EDIT:</strong> the file contains a simple print statement nd is sytax error free</p>
