ExampleEdit & Run
#import the cmath module
import cmath

print(cmath.infj)
copy
Output:
infj [Finished in 0.010506326798349619s]

The cmath(complex math) module  is an extension of the popular math module. It is built to work primarily with complex numbers. The module defines some useful methods and constants  for working with complex numbers, among the constants is the infj constant.   The infj constant is used to represent a complex number with infinite magnitude and an undefined angle.

Syntax:
cmath.infj
copy

The value returned is equivalent to complex('infj')

ExampleEdit & Run
import cmath

print(3 + cmath.infj)
print(cmath.log(cmath.infj))
print(cmath.polar(cmath.infj))
copy
Output:
(3+infj) (inf+1.5707963267948966j) (inf, 1.5707963267948966) [Finished in 0.01166575076058507s]