String Concatenation
noun
say it: “string kun-kat-uh-NAY-shun” /strɪŋ kənˌkætəˈneɪʃən/
Joining strings end to end with +, such as first + " " + last.
What is string concatenation?
String concatenation means joining strings end to end with +.
first = "Maya"
last = "Lopez"
full_name = first + " " + last
print(full_name) # Maya Lopez
In a sentence
- “String concatenation built the full name from first and last name.”
- “Adding a number with string concatenation needs str() first, or Python stops with a TypeError.”
Level: Novice · More Python terms at this level
Updated