Books & Videos

Table of Contents

  1. Chapter 1 A Taste of Py

    1. Python in the Real World

    2. Python versus Language X

    3. So, Why Python?

    4. When Not to Use Python

    5. Python 2 versus Python 3

    6. Installing Python

    7. Running Python

    8. Your Moment of Zen

    9. Things to Do

  2. Chapter 2 Py Ingredients: Numbers, Strings, and Variables

    1. Variables, Names, and Objects

    2. Numbers

    3. Strings

    4. Things to Do

  3. Chapter 3 Py Filling: Lists, Tuples, Dictionaries, and Sets

    1. Lists and Tuples

    2. Lists

    3. Tuples

    4. Dictionaries

    5. Sets

    6. Compare Data Structures

    7. Make Bigger Data Structures

    8. Things to Do

  4. Chapter 4 Py Crust: Code Structures

    1. Comment with #

    2. Continue Lines with \

    3. Compare with if, elif, and else

    4. Repeat with while

    5. Iterate with for

    6. Comprehensions

    7. Functions

    8. Generators

    9. Decorators

    10. Namespaces and Scope

    11. Handle Errors with try and except

    12. Make Your Own Exceptions

    13. Things to Do

  5. Chapter 5 Py Boxes: Modules, Packages, and Programs

    1. Standalone Programs

    2. Command-Line Arguments

    3. Modules and the import Statement

    4. Packages

    5. The Python Standard Library

    6. More Batteries: Get Other Python Code

    7. Things to Do

  6. Chapter 6 Oh Oh: Objects and Classes

    1. What Are Objects?

    2. Define a Class with class

    3. Inheritance

    4. Override a Method

    5. Add a Method

    6. Get Help from Your Parent with super

    7. In self Defense

    8. Get and Set Attribute Values with Properties

    9. Name Mangling for Privacy

    10. Method Types

    11. Duck Typing

    12. Special Methods

    13. Composition

    14. When to Use Classes and Objects versus Modules

    15. Things to Do

  7. Chapter 7 Mangle Data Like a Pro

    1. Text Strings

    2. Binary Data

    3. Things to Do

  8. Chapter 8 Data Has to Go Somewhere

    1. File Input/Output

    2. Structured Text Files

    3. Structured Binary Files

    4. Relational Databases

    5. NoSQL Data Stores

    6. Full-Text Databases

    7. Things to Do

  9. Chapter 9 The Web, Untangled

    1. Web Clients

    2. Web Servers

    3. Web Services and Automation

    4. Things to Do

  10. Chapter 10 Systems

    1. Files

    2. Directories

    3. Programs and Processes

    4. Calendars and Clocks

    5. Things to Do

  11. Chapter 11 Concurrency and Networks

    1. Concurrency

    2. Networks

    3. Things to Do

  12. Chapter 12 Be a Pythonista

    1. About Programming

    2. Find Python Code

    3. Install Packages

    4. Integrated Development Environments

    5. Name and Document

    6. Testing Your Code

    7. Debugging Python Code

    8. Debug with pdb

    9. Logging Error Messages

    10. Optimize Your Code

    11. Source Control

    12. Clone This Book

    13. How You Can Learn More

    14. Coming Attractions

  13. Appendix Py Art

    1. 2-D Graphics

    2. Graphical User Interfaces (GUIs)

    3. 3-D Graphics and Animation

    4. Plots, Graphs, and Visualization

    5. Games

    6. Audio and Music

  14. Appendix Py at Work

    1. The Microsoft Office Suite

    2. Carrying Out Business Tasks

    3. Processing Business Data

    4. Python in Finance

    5. Business Data Security

    6. Maps

  15. Appendix Py Sci

    1. Math and Statistics in the Standard Library

    2. Scientific Python

    3. NumPy

    4. The SciPy Library

    5. The SciKit Library

    6. The IPython Library

    7. Pandas

    8. Python and Scientific Areas

  16. Appendix Install Python 3

    1. Install Standard Python

    2. Install Anaconda

    3. Install and Use pip and virtualenv

    4. Install and Use conda

  17. Appendix Answers to Exercises

    1. Chapter 1, A Taste of Py

    2. Chapter 2, Py Ingredients: Numbers, Strings, and Variables

    3. Chapter 3, Py Filling: Lists, Tuples, Dictionaries, and Sets

    4. Chapter 4, Py Crust: Code Structures

    5. Chapter 5, Py Boxes: Modules, Packages, and Programs

    6. Chapter 6, Oh Oh: Objects and Classes

    7. Chapter 7, Mangle Data Like a Pro

    8. Chapter 8, Data Has to Go Somewhere

    9. Chapter 9, The Web, Untangled

    10. Chapter 10, Systems

    11. Chapter 11, Concurrency and Networks

  18. Appendix Cheat Sheets

    1. Operator Precedence

    2. String Methods

    3. String Module Attributes

    4. Fin