Knowledge organisersConcatenation and Basic Strings
Join multiple strings.
Concatenation means joining strings together using the + operator. Both sides must be str type — if one is a number, you must cast it first.
+ joins two strings: "Hello" + " World" → "Hello World"str typestr() to convert numbers before joiningfirst = "Hello"
second = "World"
print(first + " " + second) # Hello World