[Solved] python,typeerror:cannot concatenate ‘str ‘and ‘float’ objects


You need to convert the calculated number into a string before performing string methods on it. This might help:

("Celcius is:" + str(celcius))

You could also use the following method if you do not want to convert float to string:

("Celcius is: {}".format(celcius))

0

solved python,typeerror:cannot concatenate ‘str ‘and ‘float’ objects