[Tutor] syntax error that i cant spot!
Ken Green
beachkidken at gmail.com
Sat Jan 1 20:58:25 CET 2011
He had no space between the plus sign and the name value and that threw
me. I am so used to using a space before or after the plus sign.
Ken
On 01/01/2011 02:46 PM, bob gailer wrote:
> 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?
>
> >>> a = 'a'
> >>> b = 'b'
> >>> c = a + b
> >>> print c
> ab
>
> Now you can recall seeing it.
>
More information about the Tutor
mailing list