ABSTRACT

String usage abounds in just about all types of applications. A string consists of a sequence of characters, which includes letters, numbers, punctuation marks and spaces. To represent strings, you can use a single quote, double quotes or triple quotes. In this chapter the authors discuss how strings are another basic data type available in Python. They consist of one or more characters surrounded by matching quotation marks. In Python, string is an immutable sequence data type. It is the sequence of Unicode characters wrapped inside single, double or triple quotes. The chapter covers the development, formatting, modification and deletion of Python strings. It also implements different string operations and functions.