#import the cmath module
import cmath

print(cmath.infj)

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.

cmath.infj

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

import cmath

print(3 + cmath.infj)
print(cmath.log(cmath.infj))
print(cmath.polar(cmath.infj))