Displaying values
The print function
10. Combining multiple strings
List basics


Good. Next, you can "add" strings with the plus (+) operator. Take a look:

name = 'Kate'
'Hello, my name is ' + name + '.'

We used the plus operator to join a few strings. This expression will display the text:

Hello, my name is Kate.

The value in variable name was used when joining strings.


Create a variable named town and assign the following string value to it: Toronto. Next, display the following sentence using the variable:

I live in Toronto.

Stuck? Here's a hint!

Remember to put Toronto inside apostrophes or quotes when you create the variable called town. Don't forget about the space after the "in" word and dot at the end of the sentence.