Concatenating Strings
Ben Bacarisse
ben.usenet at bsb.me.uk
Thu Apr 9 15:19:47 EDT 2015
Chris Angelico <rosuav at gmail.com> writes:
> 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.
I don't think that was what Ben Finney was referring to. I would say it
is the quotes that are the main problem being pointed out.
--
Ben.
More information about the Python-list
mailing list