Which line is line 9 in your program? Above it is a blank line.
The error is associated with taking a float object and trying to use it like a function. As an example:
The error is associated with taking a float object and trying to use it like a function. As an example:
>>> f = 5.2 # This makes f a float object >>> print(f) # we can print f 5.2 >>> f() # but we can't call f Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'float' object is not callableIt looks like you expect that
con
could at some point be "Stop". But if you're setting it this way:con = float(input("Enter the desired tempature translation: "))Then that isn't possible. You're casting the input value to a float. If someone typed in "stop", the float() conversion would fail and would generate an error.