[Tutor] syntax error that i cant spot!

Corey Richardson kb1pkl at aim.com
Sat Jan 1 20:34:45 CET 2011


On 01/01/2011 02: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.
>
> Ken
>
> On 01/01/2011 12:11 PM, Abhijeet Rastogi wrote:
>> You missed a "+" after myName on line 30.
>>
>> On Sat, Jan 1, 2011 at 10:32 PM, pete <psmouty at live.com
>> <mailto:psmouty at live.com>> wrote:
>>
>> Hi,
>> Please help just starting out and have come up with the following
>> code to create a simple guessing game.
>>
>> on line 30 print good job etc i get a syntax error! sure it's
>> simple but i've looked for ages and cant spot it!
>>
>> Regards
>> Pete
>>
>> _
>>
>>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor

The + operator in this case concatenates, or joins, two strings.
"Hello, " + "World" == "Hello, World"


More information about the Tutor mailing list