Concatenating Strings

Ben Finney ben+python at benfinney.id.au
Thu Apr 9 14:46:19 EDT 2015


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).

When seeking help on program code, you want to be sure your message
composition and transmission tools aren't making your communication
needlessly garbled.

-- 
 \       “I distrust those people who know so well what God wants them |
  `\    to do to their fellows, because it always coincides with their |
_o__)                      own desires.” —Susan Brownell Anthony, 1896 |
Ben Finney




More information about the Python-list mailing list