File "example.py", line 7
    print(cmath.isfinite(float('inf') + 
                        ^
SyntaxError: '(' was never closed