The Python Oracle

Which is the preferred way to concatenate a string in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Magical Minnie Puzzles

--

Chapters
00:00 Question
00:44 Accepted answer (Score 493)
04:18 Answer 2 (Score 57)
06:58 Answer 3 (Score 52)
07:18 Answer 4 (Score 23)
08:25 Thank you

--

Full question
https://stackoverflow.com/questions/1216...

Question links:
[http://www.skymind.com/~ocrow/python_str.../]: http://www.skymind.com/%7Eocrow/python_s.../

Answer 1 links:
[What is the most efficient way to concatenate many strings together?]: http://docs.python.org/py3k/faq/programm...

Answer 2 links:
[f-string]: https://docs.python.org/3.6/reference/le...

Answer 3 links:
[PEP8 standard]: https://www.python.org/dev/peps/pep-0008...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #string #concatenation

#avk47