Introduction to Python

DRAFT version 1.6

Prepared for:
Clemson University Cyberinfrastructure Technology Integration (CITI)

Mark Smotherman
June 2011



Table of Contents

  1. Introduction
  2. Data Types
    1. Ordered Compound Types
      1. Strings
      2. Lists
    2. Unordered Compound Types
      1. Sets
      2. Dictionaries
  3. Statements
    1. Deep Versus Shallow Copies
    2. Conditional Statements
    3. Looping
  4. Functions
  5. Input/Output
  6. Modules
  7. Functional Style Programming
  8. OO Style Programming
  9. Regular Expressions
  10. OS Module
  11. Bioinformatics Examples
    1. Biopython Example
    2. Molecular Modeling Tool Kit Example
  12. Scientific Computation Examples
    1. NumPy Example
    2. SciPy Example
  13. Text Processing Examples
    1. BeautifulSoup HTML Parsing Example
    2. Natural Language Tool Kit Example
  14. Resources


Introduction

Python programming language



Data Types

Overview



Ordered Compound Types

Overview



Strings



Lists



Unordered Compound Types

Overview



Sets



Dictionaries



Statements

Overview



Deep Versus Shallow Copies



Conditional Statements



Looping



Functions

Overview



Input/Output

Overview



Modules

Overview



Functional Style Programming

Overview



OO Style Programming

Overview



Regular Expressions

Overview



OS Module

Overview



Bioinformatics Examples



Biopython Example



Molecular Modeling Took Kit Example



Scientific Computation Examples



NumPy Example



SciPy Example



Text Processing Examples



BeautifulSoup HTML Parsing Example



Natural Language Tool Kit Example



Resources