String¶
The string data type is used to represent text.
It is composed of a set of characters that can also contain spaces, numbers, emoji's, etc.
The character set is unicode, a list can be found here.
Examples¶
More on the built-in functions can be found in the Built-in Function section
1 2 3 4 5 6 7 8 9 10 11 |
|
String Operations¶
Extend String¶
A string can be extended by using the +
operator on two strings.
1 2 |
|
Repeat String¶
A string can be repeated with the *
operator. You're essentially multiplying the string by a given amount
1 2 |
|