how to set a variable to be negative infinity in python code example
Example 1: python negative infinity
float('-inf')
Example 2: python set negative infinity
# Define Negative infinity number
ntive_inf = float('-inf')
print('Negative Infinity: ',ntive_inf)