how to take inf in python code example
Example 1: python set negative infinity
# Define Negative infinity number
ntive_inf = float('-inf')
print('Negative Infinity: ',ntive_inf)
Example 2: infinity in python
# Simple piece of code that runs forever or until you CTRL-C
while true:
num = 0
print(num)
num += 1