how to write infinity in python 3 code example Example: float inf in python float('inf') float('-inf')