String
String - It is a sequence of UNICODE character enclosed under a single, double, triple quotes is called as string
- There are following types of string operations-
- Repetition - It allows us to repeat the given string using repetition operators.
- Concatenation - It allows us to add the given string.
It is denoted by (+).
Membership - it has two members in and not in and return the value in false and true.
- The 'in ' operators takes two strings and return true if the first string appears as the substring in the second string.
- The 'not in' operators take two strings and return true if the first string doesn't appear as a substring in the second string and vice versa.
Comments
Post a Comment