Python

Only available on StudyMode
  • Download(s) : 497
  • Published : May 6, 2011
Open Document
Text Preview
Table of Contents
Dive Into Python ...............................................................................................................................................................1 Chapter 1. Installing Python...........................................................................................................................................2 1.1. Which Python is right for you?......................................................................................................................2 1.2. Python on Windows.......................................................................................................................................2 1.3. Python on Mac OS X.....................................................................................................................................3 1.4. Python on Mac OS 9......................................................................................................................................5 1.5. Python on RedHat Linux...............................................................................................................................5 1.6. Python on Debian GNU/Linux......................................................................................................................6 1.7. Python Installation from Source....................................................................................................................6 1.8. The Interactive Shell......................................................................................................................................7 1.9. Summary........................................................................................................................................................8 Chapter 2. Your First Python Program.........................................................................................................................9 2.1. Diving in........................................................................................................................................................9 2.2. Declaring Functions.......................................................................................................................................9 2.3. Documenting Functions...............................................................................................................................10 2.4. Everything Is an Object...............................................................................................................................11 2.5. Indenting Code.............................................................................................................................................13 2.6. Testing Modules ...........................................................................................................................................14 Chapter 3. Native Datatypes.........................................................................................................................................15 3.1. Introducing Dictionaries..............................................................................................................................15 3.2. Introducing Lists..........................................................................................................................................17 3.3. Introducing Tuples.......................................................................................................................................22 3.4. Declaring variables......................................................................................................................................23 3.5. Formatting Strings.......................................................................................................................................25 3.6. Mapping...
tracking img