Python by Swaroop C H - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 9. Data Structures
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.