An overview of Python - What is python
- Python Timeline
- Advantages/Disadvantages of Python
- Getting help with pydoc
The Python Environment - Starting Python
- Using the interpreter
- Running a Python script
- Python scripts on Unix/Windows
- Editors and IDEs
Getting Started - Using variables
- Builtin functions
- Strings
- Numbers
- Converting among types
- Writing to the screen
- Command line parameters
Flow Control - About flow control
- White space
- Conditional expressions
- Relational and Boolean operators
- While loops
- Alternate loop exits
Array types - About array types (AKA sequences)
- Lists and list methods
- Tuples
- Indexing and slicing
- Iterating through a sequence
- Nested sequences
- Sequence functions, keywords, and operators
- List comprehensions
- Generator Expressions
Working with files - File overview
- Opening a text file
- Reading a text file
- Writing to a text file
- Reading and writing raw (binary) data
- Converting binary data with struct
Dictionaries and Sets - About dictionaries
- Creating dictionaries
- Iterating through a dictionary
- About sets
- Creating sets
- Working with sets
Functions - Defining functions
- Parameters
- Global and local scope
- Nested functions
- Returning values
Sorting - The sorted() function
- Alternate keys
- Lambda functions
- Sorting collections
- Using operator.itemgetter()
- Reverse sorting
Errors and Exception Handling - Syntax errors
- Exceptions
- Using try/catch/else/finally
- Handling multiple exceptions
- Ignoring exceptions
Modules and Packages - The import statement
- Module search path
- Creating Modules
- Using packages
- Function and Module aliases
An Introduction to Python Classes - About o-o programming
- Defining classes
- Constructors
- Methods
- Instance data
- Properties
- Class methods and data
Regular Expressions - RE syntax overview
- RE Objects
- Searching and matching
- Compilation flags
- Groups and special groups
- Replacing text
- Splitting strings
Using the Standard Library - The sys module
- Launching external programs
- Math functions
- Random numbers
- Reading CSV data
Dates and Times - Working with dates and times
- Translating timestamps
- Parsing dates from text
- Formatting dates
- Calendar data
Working with the File System - Paths, directories, and filenames
- Checking for existence
- Permissions and other file attributes
- Walking directory trees
- Creating filters with fileinput
- Using shutil for file operations
Advanced Data Handling - Defaultdict and Counter
- Prettyprinting data structures
- Compressed archives (zip, gzip, tar, etc.)
- Persistent data
Network Programming - Using requests
- Grabbing web content
- Sending email
- Using SSH for remote access
- Using FTP
Writing real-life applications - Reading input files a la Unix
- Parsing command-line options
- Detecting the current platform
- Implementing logging
, The Python Environment
Starting Python
Using the interpreter
Running a Python script
Editors and IDEs
Variables and Values
Using variables
Builtin functions
String data
Numeric data
Converting types
Basic input and output
Writing to the screen
String formatting
Command line arguments
Reading the keyboard
Flow Control
About flow control
The if statement
Relational and Boolean values
while loops
Exiting from loops
Array types
Sequence types in general
Lists and list methods
Tuples
Indexing and slicing
Iterating through a sequence
Sequence functions, and operators
List comprehensions and generators
Working with files
File I/O overview
Opening a text file
Reading a text file
Writing to a text file
Dictionaries and Sets
About dictionaries
Creating dictionaries
Getting values
Iterating through a dictionary
About sets
Creating sets
Working with sets
Functions
Defining functions
Returning values
Parameters and arguments
Variable scope
Sorting
The sorted() function
Custom sort keys
Lambda functions
Sorting in reverse
Using min() and max()
Exception handling and logging
Exceptions
Using try/catch/else/finally
Handling multiple exceptions
Logging setup
Basic logging
Modules and Packages
Creating Modules
The import statement
Module search path
Using packages
Function and Module aliases
Introduction to Classes
About object-oriented programming
Defining classes
Constructors
Understanding self
Properties
Instance Methods and data
Class methods and data
Inheritance
Regular Expressions
RE syntax overview
RE objects
Searching and matching
Compilation flags
Groups and special groups
Search-and-replace
Splitting strings
Dates and times
Date and time representations
Parsing dates from text
Formatting as text
Converting representations
Calendar data
Time zones
Working with the file system
Paths, and filenames
Checking for existence
Permissions and other file attributes
Walking directory trees
Using shutil for file operations
Advanced data handling
Defaultdict and Counter
Pretty-printing data structures
Compressed archives (zip, etc.)
Persistent data
Network programming
Using requests
Grabbing web content
Sending email
Using SSH for remote access
Using FTP
Effective Scripts
Reading input files a la Unix
Parsing command-line options
Detecting the current platform
Implementing logging
Virtual Environments
Why are virtual environments needed
Creating a virtual env
Replicating an environment
Virtual environment issues