Languages
[Edit]
EN

Python - string concatenation

0 points
Created by:
Keisha-Acosta
260

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!

Python - string (popular problems)

Python - string concatenation
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join