Theory

Strings are text enclosed in quotes.

You can combine (concatenate) strings with +:

first = "Hello"
second = "World"
message = first + " " + second
print(message) # Hello World

You can also repeat strings with *:

print("Ha" * 3) # HaHaHa

Exercises in this lesson

1

Combine Strings

Create two variables: first_name = "John" last_name = "Doe" Combine them into full_name with a space between. Display: John Doe

Easy Points: 15
Solve in the playground
Next lesson: Conditions →