String Operators

This lesson discusses string operators used for concatenating two strings.

We'll cover the following

There are only two string operators:

  • Concatenation (.):
  • Concatenation Assignment (.=)

Concatenation #

The most important operation in strings is concatenation. It means joining one string to another. For instance, the concatenation of water and bottle will result in a string waterbottle.

Run the code below to see how this is done:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy