Little problem with the "+" operator
Oleg Broytmann
phd at phd.pp.ru
Mon Mar 5 09:46:15 EST 2001
On Mon, 5 Mar 2001, Zamurai wrote:
> variableOne = 500
> myVariable = variableOne + "cool"
>
> But I get the following error: "unsupported operand types for +"
Python is strict typed language. You cann add strings, or you can
integers, but you cannot add int to string. Use conversion functions -
convert int to string, e.g.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list