How to use and compile python file? : <p>i have written a python script as <code>cl.py</code> when i run it in the shell by the command <code>python cl.py</code> it run successfully now if there is a <code>function</code> <code>fun1()</code> in my <code>cl.py</code> script and i want to use that function in another script called <code>cl1.py</code>  so what would be the right approach</p>

<p>as i want to compile the file <code>cl.py</code> for  the faster execution </p>

<p>both of the files are in  the same <code>directory</code> and after running python <code>cl.py</code> </p>

<p>when i am importing that <code>cl</code> in another script <code>cl1.py</code> by doing 
<code>import cl</code> its no getting <code>import</code> </p>

<pre><code>invalid syntax
</code></pre>

<p>here is what i mean </p>

<pre><code>file cl.py

def fun1(s)
    print(s)
</code></pre>

<p>after doing <code>python cl.py</code></p>

<p>i wrote another file as</p>

<p>file cl1.py</p>

<pre><code>import cl

v ="hello"
fun1(v)
</code></pre>

<p>why it saying <code>syntax error</code> on import cl</p>
