← Python

String Concatenation

The + operator joins two strings end to end

What it does: Adding ' ' between strings inserts a space in the result. Variables holding strings can be concatenated with +. There's already a space inside 'Hi ' — it gets joined to 'there'. name holds 'Alice', so 'Hi ' + name is 'Hi ' + 'Alice' = 'Hi Alice'. The middle " " adds a space between Hello and World. With strings, + concatenates (joins) them end to end. city holds 'Melbourne' — variables are replaced by their value. No spaces inside either string — + joins them directly.

Common mistakes: Line 3 is missing the + operator. Use: first + second. Line 2 uses Name with a capital N. Python is case-sensitive. Use: name.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
What is "Hello" + "World"?
Hello WorldHelloWorld
Matches
❌ 'Hello' + 5
Error: str + int not allowed
Applying
Meanings
Term
"Hello" + "World"
Meaning
Concatenation joins strings with + but no space is added.
Practice
name = "Alice"
Testing
Gaps
result = "Hello" "World"
Check Answer
Spots
2second = "World"
3result = first second

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Spider' badge — Web Weaver, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. What is "Hello" + "World"?
A. Hello World
B. HelloWorld ✓
+ joins strings exactly as they are — no space is added between them
2. What is "Hi " + "there"?
A. Hi there ✓
B. Hithere
There's already a space inside 'Hi ' — it gets joined to 'there'
3. After name = "Alice", what is "Hi " + name?
A. Hi Alice ✓
B. Hi name
name holds 'Alice', so 'Hi ' + name is 'Hi ' + 'Alice' = 'Hi Alice'
4. What is "Good" + "bye"?
A. Good bye
B. Goodbye ✓
+ joins strings with no gap — there's no space inside either string
5. What is "Hello" + " " + "World"?
A. Hello World ✓
B. HelloWorld
The middle " " adds a space between Hello and World

Match the Pairs

'Hello' + 5 Error: str + int not allowed
name = 'Ali' print('Hi' + name) Error: Missing space
'Hello' + ' ' + 'World' Valid: Hello World
greeting = 'Hi ' result = greeting + 'Bob' Ok: Concatenate variables
print('cat' + 'nap') Output: catnap
a = 'Hot' b = 'Dog' print(a + b) Output: HotDog

Key Term

"Hello" + "World"
Concatenation joins strings with + but no space is added.~~"Hello" + " " + "World"

Fill in the Blanks

1. result = "Hello" + "World"
2. name = "Alice" message = "Hi " + name print(message)
3. greeting = "Good" + " " + "morning"
4. first = "Bob" last = "Smith" fullname = first + " " + last
5. city = "Melbourne" sentence = "I live in " + city print(sentence)

Spot the Error

Question 1
A first = "Hello"
B second = "World"
C result = first second
D print(result)
Line C — Line 3 is missing the + operator. Use: first + second
Question 2
A name = "Bob"
B greeting = "Hi " + Name
C print(greeting)
Line B — Line 2 uses Name with a capital N. Python is case-sensitive. Use: name
Question 3
A fruit = "apple"
B count = "3"
C msg = "I have " + count + fruit
D print(msg)
Line C — Line 3 is missing a space before fruit. Use: count + " " + fruit
Question 4
A city = "Melbourne"
B country = "Australia"
C location = city + , + country
D print(location)
Line C — Line 3 has a comma without quotes. Use: city + ", " + country
Question 5
A word = "Hello"
B sentence = word + " " + "World"
C print(Sentence)
Line C — Line 3 uses Sentence with a capital S. Python is case-sensitive. Use: print(sentence)
For Teachers

Create a free class, add this module to a journey, and track who's stuck.

Create a free teacher account →

No credit card. No setup fee. Make a class and invite students in under three minutes.

For Students

Practice this topic interactively, track progress, and unlock badges.

Start Learning Free →

Have a class code?