Editor settings

General settings

Save settings

Learn to program with Python

Concatenating strings together #

You can combine two or more strings using the + operator.

For example:

full_greeting = "Hello" + ", " + "Alice" + "!"
print(full_greeting) # Output: Hello, Alice!

Exercise #

  • Create a variable full_name by combining your first and last name together.
  • Make sure to use the + operator to combine those strings.
  • Make sure that there is a space between your first and last name.
Output will be displayed here