Languages
[Edit]
EN

Python - string concatenation

0 points
Created by:
Keisha-Acosta
380

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!

Alternative titles

  1. Python - concatenate strings
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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