[Solved] Python not able to add two integers thinking they’re strings [duplicate]


raw_input returns a string. You need to convert it like this:

int(raw_input("Raise by: "))

Also, notice that if the user enters any other character this will raise an error.

You can also just use input instead of raw_input:

input("Raise by: ")

This will, again, raise an error if the user enters any other character.

2

solved Python not able to add two integers thinking they’re strings [duplicate]