EN
Python - string concatenation
0
points
In this article, we would like to show you how to concatenate strings in Python.
Quick solution:
string1 = "AB"
string2 = "CD"
result = string1 + string2
print(result) # ABCD
Practical example
In this example, we present how to concatenate strings using +
operator.
string1 = "Dirask"
string2 = "awesome!"
result = string1 + " is " + string2
print(result)
Output:
Dirask is awesome!