raw_input
returns a string, you should convert it to an integer using int()
:
a = int(raw_input("please enter number: "))
Example:
>>> "12"*10 # This is what your code is doing
'12121212121212121212'
>>> int("12")*10 # Expected output
120