• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

Problem :

I'm new to python and I've been struggling with this problem for a while. I've search google and youtube but no luck so far. I've written this in IDLE 2.6.5. If someone could tell me why I'm getting the can't multiply sequence by non-int of type float error.
by (6.9k points)  

1 Answer

0 votes


The can't multiply sequence by non-int of type 'float' error was because the input taken in the text-box is a string. 

#c = self.input.GetValue()#

the value is still a string. Therefore, that value in c has to be converted, in this case to a float type:

#c = float(c)#

so Python can process it as part of the equation:
#c = 9.0/5.0 * c + 32#

Further Readings:


by (21.9k points)  
edited by