Sitemap
Better Programming

Advice for programmers.

Member-only story

Python and String Concatenation

3 min readFeb 3, 2020

--

Press enter or click to view image in full size
Photo by Jacob Copus on Unsplash

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.

--

--

Miguel Machado
Miguel Machado

Written by Miguel Machado

Born in a village of 12, living in a city of 9 million. Developer @Remote.com.