Python -String Concatenation
String Concatenation
To concatenate, or combine, two strings you can use the + operator.
Example
Merge variablea with variableb into variablec:
a = "Hello"
b = "World"
c = a + b
print(c)
Try it Yourself »b = "World"
c = a + b
print(c)
Example
To add a space between them, add a" ":
a = "Hello"
b = "World"
c = a + " " + b
print(c)
Try it Yourself »b = "World"
c = a + " " + b
print(c)

