float('-inf')
# Import math Library import math # Print the positive infinity print (math.inf) # Print the negative infinity print (-math.inf)
# Define Negative infinity number ntive_inf = float('-inf') print('Negative Infinity: ',ntive_inf)