''.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!).
More Related Contents:
- How do I concatenate two lists in Python?
- How do I concatenate items in a list to a single string?
- Import multiple csv files into pandas and concatenate into one DataFrame
- How can I concatenate str and int objects?
- Why does concatenation of DataFrames get exponentially slower?
- How do I concatenate text files in Python?
- Which is the preferred way to concatenate a string in Python?
- Python strings and integer concatenation [duplicate]
- String concatenation without ‘+’ operator
- In Python, what is the difference between “.append()” and “+= []”?
- Concatenating two one-dimensional NumPy arrays
- Cannot concatenate ‘str’ and ‘float’ objects?
- how to merge 200 csv files in Python
- Import multiple excel files into python pandas and concatenate them into one dataframe
- How can strings be concatenated?
- Concatenate two NumPy arrays vertically
- pandas concat generates nan values
- Concatenating two range function results
- How to concatenate two dictionaries to create a new one? [duplicate]
- How to concatenate (join) items in a list to a single string
- How can I merge 200 CSV files in Python?
- Ellipsis lists […] and concatenating a list to itself [duplicate]
- Concatenating string and integer in Python
- Pandas concat yields ValueError: Plan shapes are not aligned
- Concatenation of many lists in Python [duplicate]
- Concatenating column vectors using numpy arrays
- Concatenate elements of a tuple in a list in python [duplicate]
- How to convert DataFrame.append() to pandas.concat()?
- How can I get the concatenation of two lists in Python without modifying either one? [duplicate]
- How can I concatenate two integers in Python?