Invalid declaration of a python list : <p>I am trying to declare a simple list (myList) in python 3 and convert it to an array (myArray), but I get a syntax error.  I tried several changes, but I cannot get it to work.  Here is the code.</p>

<pre><code>import numpy as np

var myList = [1,2,3,4];

 File "&lt;ipython-input-17-381fa36e2cfd&gt;", line 1
    var myList = [1,2,3,4]
             ^
SyntaxError: invalid syntax

var myArray = np.array(myList);

 File "&lt;ipython-input-18-15c82c3a3cf5&gt;", line 1
    var myArray = np.array(myList);
              ^
SyntaxError: invalid syntax
</code></pre>
