Polar Coordinates

  • + 0 comments
    import cmath
    z = complex(input())
    r = abs(z)
    phi = cmath.phase(z)
    print(r)
    print(phi)