0

I am trying to compile the python program for the kinetic energy. But it produces me the error as

Traceback (most recent call last):
  File "/home/raj/Desktop/nn.py", line 5, in <module>
    E= m*v*v
TypeError: can't multiply sequence by non-int of type 'str'

for the code

print "enter the value of mass "
m= raw_input()
print "enter the value of the velocity?"
v= raw_input()
E= m*v*v  
print  E

Please explain me the error.Please correct it

0 Answers0