I have been working on a pythagorus theorem calculator on python Here is my code so far:
a = int(raw_input("what is length a?"))
b = int(raw_input("what is length b?"))
a2 = a*a
b2 = b*b
c2 = a2+b2
c = c2**0.5
print "the length of c is " + c
It will not work on the last line. It throws the following error:
cannot concatenate 'str' and 'float' objects
Does anyone know what's wrong with it?