title: Array of complex numbers in Python
body: <p>How do I make an array of complex numbers in Python?</p>
  
  <p>In C++ STL we can write the following code:</p>
  
  <pre><code>class Complex {
  
        public:
        int re, 
            im;
  
        float getModule() {
  
              return sqrt(re * re + im * im);
        } 
  };
  
  vector&lt; Complex &gt; vec;
  </code></pre>
  
  <p>but in Python?</p>