Polar Coordinates

  • + 1 comment

    In barely few lines...

    import cmath
    complex_num = complex(input())
    print(abs(complex_num))
    print(cmath.phase(complex_num))