Join.py Official
A common mistake for beginners is using a for loop with the + operator to build a string:
For example, if you have a list of words and want to create a sentence: join.py
In Python, strings are . Every time you use + to add a character, Python creates a brand-new string object in memory. For large datasets, this results in time complexity. A common mistake for beginners is using a
