To concatenate, or combine, two strings you can use the + operator.
Example
Merge variable a
with variable b
into variable c
:
a = “Hello”
b = “World”
c = a + b
print(c)
Output:
HelloWorld
Example
To add a space between them, add a " "
:
a = “Hello”
b = “World”
c = a + ” ” + b
print(c)
Output:
Hello World