[Tutor] syntax error that i cant spot!

bob gailer bgailer at gmail.com
Sat Jan 1 20:50:47 CET 2011


On 1/1/2011 2:28 PM, Ken Green wrote:
> I am caught off guard but what is the purpose of the plus sign?  I
> don't recall seeing it used like that.

I just tried to look that up in the Python Manuals. No success! Where is 
it hiding?

*** OOPS just found it in section 6.6 Sequence Types
s + t the concatenation of s and t

>>> a = 'a'
>>> b = 'b'
>>> c = a + b
>>> print c
ab

Now you can recall seeing it.

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list