Concatenating Strings

Chris Angelico rosuav at gmail.com
Thu Apr 9 20:57:01 CEST 2015


On Fri, Apr 10, 2015 at 4:46 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Travis Griggs <travisgriggs at gmail.com> writes:
>
>> Here’s 3 examples:
>>
>>     if k + ‘_@‘ in documents:
>>
>>     timeKey = k + ‘_@‘
>>
>>     historyKey = thingID + ‘_’ + k
>
> In addition to the other responses, I'll point out a different issue:
>
> Your client is composing messages that munge your text. Ensure you post
> only the exact characters you want to type; the above is not valid
> Python code (try it yourself).

I don't think they were meant to be one block. They're three
independent examples.

ChrisA



More information about the Python-list mailing list