Most Pythonic way to concatenate strings

''.join(lst)

The only Pythonic way:

  • clear (that is what all the big boys do and what they expect to see),
  • simple (no additional imports needed, and stable across all versions),
  • fast (written in C) and
  • concise (on an empty string, join elements of iterable!).

Leave a Comment