Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Python---String-Concatenation

String Concatenation

To concatenate, or combine, two strings you can use the + operator.

Example

Merge variable a with variable b into variable c:

a = "Hello" b = "World" c = a + b print(c)

Example

To add a space between them, add a " ":

a = "Hello" b = "World" c = a + " " + b print(c)

Exercise

What is a correct syntax to merge variable x and y into variable z?

z = x, y

z = x = y

z = x + y

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors