Skip to Content
A Concise Introduction to Programming in Python
book

A Concise Introduction to Programming in Python

by Mark J. Johnson
December 2011
Beginner
217 pages
8h
English
Chapman and Hall/CRC
Content preview from A Concise Introduction to Programming in Python
Chapter 11
Strings
Strings are a basic data type in Python; the others you have seen so far are
integer, float, and boolean. Each data type stores its information in a different
way and supports a different set of operations. Whereas integers, floats, and
booleans are each single pieces of data, strings provide our first example of a
data structure, which is a collection of data organized to efficiently support
a particular set of access methods and operations.
A Python string is a sequence of characters inside quotation marks, either
single () or double ("). Python also uses a form of triple quotes that you can
read about in the documentation. We used strings ...
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

Python Standard Library

Python Standard Library

Fredrik Lundh
Numerical Computing with Python

Numerical Computing with Python

Pratap Dangeti, Allen Yu, Claire Chung, Aldrin Yim

Publisher Resources

ISBN: 9781439896952