Little problem with the "+" operator

Andrew Markebo flognat at flognat.myip.org
Mon Mar 5 16:28:30 EST 2001


/ "Alex Martelli" <aleaxit at yahoo.com> wrote:
| [...]
| > Does someone know how to solve the problem?
| 
| Sure -- make both variables into strings, e.g.
| 
|     myVariable = str(variableOne) + "cool"

NONOno.. he wants to add 500 with the temperature when it is cool, 0
degrees celsius or uhm what it now is in fahrenheit ;-)

        /Andy



More information about the Python-list mailing list