Skip to Main Content
Python Programming: A modular approach
book

Python Programming: A modular approach

by Kumar Naveen, Taneja Sheetal
January 2017
Intermediate to advanced content levelIntermediate to advanced
606 pages
14h 1m
English
Pearson Education India
Content preview from Python Programming: A modular approach

CHAPTER 6

STRING

CHAPTER OUTLINE

6.1 Strings

6.2 String Processing Examples

6.3 Pattern Matching

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modular Programming with Python

Modular Programming with Python

Erik Westra
Python Programming Blueprints

Python Programming Blueprints

Daniel Furtado, Marcus Pennington

Publisher Resources

ISBN: 9789352866038