complex number to polar form in python
<p>I'm new to python so please bear with me. 
The problem is:</p>

<p>"Write a function polar(z) to convert a complex number to its polar form (r,theta). You may use the math.atan2 and math.hypot functions but not the cmath library."</p>

<p>I don't even know where to start with this one, but so far I have:</p>

<pre><code>import math
def polar(z):
    z = a + bj
    r = math.hypot(a,b)
    theta = math.atan2(b,a)
    print "(",r,",",theta,")"
</code></pre>

<p>Any help will do!</p>