float * float python code example Example 1: float inf in python float('inf') float('-inf') Example 2: declare float python myfloat = 7.0