Little problem with the "+" operator

Grant Edwards grante at visi.com
Mon Mar 5 09:47:51 EST 2001


>I want to make the following:
>
>variableOne = 500
>myVariable = variableOne + "cool"
>
>But I get the following error: "unsupported operand types for +"
>
>Does someone know how to solve the problem?

You'll have to define the problem better.  What value do you
want myVariable to have?

-- 
Grant Edwards                   grante             Yow!  .. I'm IMAGINING a
                                  at               sensuous GIRAFFE, CAVORTING
                               visi.com            in the BACK ROOM of a
                                                   KOSHER DELI --



More information about the Python-list mailing list