title: How to concatenate (join) items in a list to a single string
body: <p>How do I concatenate a list of strings into a single string?</p>
  <p>For example, given <code>['this', 'is', 'a', 'sentence']</code>, how do I get <code>&quot;this-is-a-sentence&quot;</code>?</p>
  <hr />
  <p><sub>For handling a few strings in <em>separate variables</em>, see <a href="https://stackoverflow.com/questions/4435169">How do I append one string to another in Python?</a>.</sub></p>
  <p><sub>For the opposite process - creating a list from a string - see <a href="https://stackoverflow.com/q/4978787">How do I split a string into a list of characters?</a> or <a href="https://stackoverflow.com/questions/743806/">How do I split a string into a list of words?</a> as appropriate.</sub></p>