Member-only story
Python and String Concatenation
What is the most performant way to concatenate strings in Python?
Python was one of the first languages I learned. At the time, I was taught that the way to join a list of strings into a single string was to do something like this:
After a while, one learns the wonders of the .join function, which greatly simplifies and reduces the number of lines used. Using .join we could write the code above as follows:
Late in 2018 I was working in Lisbon with an incredibly talented engineering team in a company that was going through a big growth phase. The codebase was fairly old and with a fair amount of “hammered” code, so when the company started growing a lot of problems that weren’t there before started appearing.









![Two Sum [Python Algorithm]](https://miro.medium.com/v2/resize:fit:1358/format:webp/1*MAMstA3di11L9MnFmZN7Kg.jpeg)

