You are here:About>Computing & Technology>Python
About.comPython
Newsletters & RSSEmail to a friendSubmit to Digg

Beginning Python: Data Types

From Al Lukaszewski,
Your Guide to Python.
FREE Newsletter. Sign Up Now!

Introduction

As I said in the tutorial "How a Computer Looks At Your Program", computer programs consist of data and code. In order to make code able to be used for more than a single set of data, computer programs use variables, or containers for data. These containers are technically called data structures because they allow the data to be structured in different ways. Just like you would probably be disinclined from cooking pasta in a coffee cup or drinking tea from a vat, so Python offers a variety of containers for different kinds of data.

In Python, there are five basic data structures or types of variables: integers, strings, lists, tuples, and dictionaries. In the following pages, we will look at each in turn.

Other tutorials in this series: 1 | 2 | 3 | 4 | 5 | 6

  1. Introduction
  2. Integers
  3. Strings - Part 1
  4. Strings - Part 2
  5. Strings - Part 3
  6. Accessing Variables
  7. Working With Variables
  8. Lists
  9. Tuples
  10. Dictionaries

Previous | Next >>

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.