<< Back to man.ChinaUnix.net

A Byte of Python

Chapter 9. Data Structures

Table of Contents

Introduction
List
Quick introduction to Objects and Classes
Using Lists
Tuple
Using Tuples
Tuples and the print statement
Dictionary
Using Dictionaries
Sequences
Using Sequences
References
Objects and References
More about Strings
String Methods
Summary

Introduction

Data structures are basically just that - they are structures which can hold some data together. In other words, they are used to store a collection of related data.

There are three built-in data structures in Python - list, tuple and dictionary. We will see how to use each of them and how they make life easier.