Python String Concatenation | Is it easy ?

Posted by

Python String Concatenation is a process of joining / combining two variables and storing under a single variable. So how this will work ??

In general when we make any calculation how we add two numbers in the same way we do add these variables and these variables may contain strings.

So here is how we do add two strings with a ‘+’ operator.

concatenated_string = string1 + " " + string2

And the first step is collecting strings this may be from user or a constants.

string1 = "Hello"
string2 = "world"

And add them as shown above then printed.

print(concatenated_string)

Python String Concatenation Full Code :

string1 = "Hello"
string2 = "world"
concatenated_string = string1 + " " + string2
print(concatenated_string)

For more interesting tutorials visit