Run »
#import cmath for complex number operations import cmath #convert a polar coordinate to rectangular form print(cmath.rect(3.1622776601683795, 1.2490457723982544))
(1+3j)