CHAPTER 6
STRING
CHAPTER OUTLINE
6.2 String Processing Examples
Elementary forms of data such as numeric and Boolean are called scalar data types. Several applications require more complex forms of data. For example, the name of a person, or an SMS may be expressed in the form of a string. We have already been dealing with strings. In this chapter, we shall discuss more about strings
6.1 STRINGS
As mentioned earlier, a string is a sequence of characters. A string may be specified by placing the member characters of the sequence within quotes (single, double or triple). Triple quotes are typically used for strings that span multiple lines. The following assignment statement assigns the string 'Hello Gita' to the ...
Get Python Programming: A modular approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.