Question: 
Write a function to get the length of a complex number.


Model's Code:
def len_complex(real, imag):
    return (real**2 + imag**2)**0.5



Sample Correct Code:
import cmath
def len_complex(a,b):
  cn=complex(a,b)
  length=abs(cn)
  return length


Asserts:
assert len_complex(3,4)==5.0
assert len_complex(9,10)==13.45362404707371
assert len_complex(7,9)==11.40175425099138


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

Test 688 of 974: 517/688 (75.1453488372093%): success