Question: 
Write a python function to convert complex numbers to polar coordinates.


Model's Code:
def convert(z):
    import cmath
    return abs(z), cmath.phase(z)



Sample Correct Code:
import cmath  
def convert(numbers):    
  num = cmath.polar(numbers)  
  return (num) 


Asserts:
assert convert(1) == (1.0, 0.0)
assert convert(4) == (4.0,0.0)
assert convert(5) == (5.0,0.0)


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 252 of 974: 180/252 (71.42857142857143%): success