Any reason not to use '+' to concatenate two strings?
Any reason not to use '+' to concatenate two strings? Question: A common antipattern in Python is to concatenate a sequence of strings using + in a loop. This is bad because the Python interpreter has to create a new string object for each iteration, and it ends up taking quadratic time. (Recent versions of …
Total answers: 8