What is a String?
A string is a sequence of characters and can be assigned by using quotes, either ‘Word’ or “Words” will work.
With strings, the “+” operator means to concatenate. Concatenation is to combine.
Notice how the strings were concatenated. Since there was no space at the end of the first string, or at the beginning of the second string, the two strings were joined as is. If a space between them is desired, then you have to add a space.
If a string contains a number inside of it, it is still considered a string.
Strings can be indexed or sliced. If you don’t know what this means, refer to our Iteration and Looping page.