How to Concatenate Strings in Python
Author: Newtum
This example covers several common and efficient methods for joining strings together in Python.
Using the `+` Operator
The simplest way to concatenate two or more strings is by using the `+` operator. This creates a new string containing the combined text.
Using f-strings (Formatted String Literals)
F-strings (available in Python 3.6+) are a highly readable and efficient way to embed expressions inside string literals for formatting.
Using the `str.join()` Method
The `.join()` method is the most efficient way to concatenate a large number of strings from an iterable (like a list). You call it on the separator string you want between the elements.