Printing mixtures in integers and strings

Doug Gorley gorleyd at unbc.ca
Thu Mar 29 15:05:34 EST 2001


On Wed, 28 Mar 2001, Neil Benn wrote:

> Hello,
> 
>             I'm trying to use something like this:-
> 
> def move(row): #Moves the dispenser to the row on the plate
>     print "Moved to Row - " + row
> 

Try defining your function as:

def move( row ) :
   print "Moved to Row -", row

Use the comma instead of the + sign.  This should solve your problem.

-- 

 -------------------
 | Douglas Gorley  |
 | gorleyd at unbc.ca |
 -------------------




More information about the Python-list mailing list