“Can’t convert ‘float’ object to str implicitly”

floats can’t be implicitly converted into strings. You need to do it explicitly.

print("The value from Fahrenheit to Celsius is " + str(celsius))

But it’s better to use format.

print("The value from Fahrenheit to Celsius is {0}".format(celsius))

Leave a Comment