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

[ad_1]

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

[ad_2]

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