bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch
Learn/Python/Foundations Practice
Python•Foundations Practice

Python - String Concatenation

String Concatenation

Formula

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)

Example

To add a space between them, add a " "

a = "Hello" b = "World"

c = a + " " + b print(c)

Previous

Python - Modify Strings

Next

Python - Format - Strings