Friday, 6 September 2013

TypeError: can't multiply sequence by non-int of type 'float' 3.3

TypeError: can't multiply sequence by non-int of type 'float' 3.3

Ok I have edited the code to where it would hopefully work but I get the
TypeError: can't multiply sequence by non-int of type 'float'.
Heres the code that I have:
uTemp = input("Enter Temperature Variable: ")
cOrF = input("Do you want C for celcius, or F for Farehnheit?: ")
if cOrF:
F = 1.8 * uTemp + 32

No comments:

Post a Comment